Skip to content

Commit 25d4970

Browse files
authored
Merge pull request #32 from layer5io/leecalcote-patch-5
Add step to set package version in workflow
2 parents e7f157f + cdfa9a4 commit 25d4970

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/publish-package.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ jobs:
3535
registry-url: 'https://registry.npmjs.org'
3636
scope: "@sistent"
3737

38+
- name: "Set Package Version"
39+
uses: reedyuk/npm-version@1.1.1
40+
with:
41+
version: ${{ github.event.release.tag_name }} || ${{ inputs.release_version }}
42+
3843
- name: Install Dependencies
3944
run: npm ci
4045
env:
@@ -70,6 +75,8 @@ jobs:
7075
run: |
7176
set -e
7277
npm publish --provenance --access public --verbose
78+
env:
79+
NODE_AUTH_TOKEN: '' # Explicitly empty for install
7380

7481
- name: Pull changes from remote
7582
run: git pull origin master

0 commit comments

Comments
 (0)