Skip to content

Commit

Permalink
Publish snapshots (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Aug 21, 2023
1 parent dcfd519 commit a978372
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ jobs:
path: restatedev-restate-sdk.tgz
retention-days: 1
if-no-files-found: error

- name: Publish snapshot
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
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') --git-tag-version false
npm publish
e2e:
permissions:
contents: read
Expand Down

0 comments on commit a978372

Please sign in to comment.