Skip to content

Commit 447409e

Browse files
authored
User version of Git Release for NPM package (#21)
1 parent b71f160 commit 447409e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Publish Package to npmjs
22
on:
33
release:
4-
types: [created]
4+
types: [published]
55
jobs:
66
build:
77
runs-on: ubuntu-latest
@@ -12,7 +12,7 @@ jobs:
1212
with:
1313
node-version: '16.x'
1414
registry-url: 'https://registry.npmjs.org'
15-
- run: npm ci
16-
- run: yarn new:publish
15+
- run: yarn install --frozen-lockfile
16+
- run: yarn publish --new-version ${{ github.event.release.tag_name }} && clean-package restore
1717
env:
1818
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)