Skip to content

Commit

Permalink
publish server
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger committed Sep 29, 2024
1 parent c4b87eb commit ad9fe7b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@ name: Server - Release

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
#on:
# push:
# tags:
# - "v*.*.*"
tags:
- "v*.*.*"

env:
node_version: 14
Expand All @@ -27,6 +22,7 @@ jobs:
- uses: jetli/wasm-pack-action@v0.4.0
with:
version: 'latest'
- run: ./scripts/publish-server.sh 0.0.1 # pass the version as an argument ${{ github.event.release.tag_name }} https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions
# see https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions
- run: ./scripts/publish-server.sh ${{ github.event.release.tag_name }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit ad9fe7b

Please sign in to comment.