Skip to content

Publish snapshots (#157) #152

Publish snapshots (#157)

Publish snapshots (#157) #152

Workflow file for this run

name: Build and test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
# prevent from running on forks
if: github.repository_owner == 'restatedev'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [19.x]
steps:
- uses: actions/checkout@v3
- uses: bufbuild/buf-setup-action@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run proto
- run: npm run verify
- run: mv $(npm pack) restatedev-restate-sdk.tgz
- uses: actions/upload-artifact@v3
with:
name: restatedev-restate-sdk
path: restatedev-restate-sdk.tgz
retention-days: 1
if-no-files-found: error
- name: Publish snapshot
if: ${{ github.event_name == 'push' && github.ref == 'main }}

Check failure on line 37 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Build and test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 37, Col: 13): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# We're using 0.0.0 to avoid this version to be higher than released versions.
# To use it:
# "@restatedev/restate-sdk": "^0.0.0-SNAPSHOT"
npm version 0.0.0-SNAPSHOT-$(date '+%Y%m%d%H%M%S')
npm publish
e2e:
permissions:
contents: read
issues: read
checks: write
pull-requests: write
actions: read
secrets: inherit
needs: build
uses: restatedev/e2e/.github/workflows/e2e.yaml@main
with:
sdkTypescriptCommit: ${{ github.event.pull_request.head.sha || github.sha }}
e2eRef: main