From ad9fe7b5ecf3f60a3fde8dcf079d0b0ee25d450c Mon Sep 17 00:00:00 2001 From: Gregor Zeitlinger Date: Sun, 29 Sep 2024 13:20:13 +0200 Subject: [PATCH] publish server --- .github/workflows/release.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64ab7107..18151c46 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 }}