Skip to content

Commit 6909a5a

Browse files
authored
switch to tag based publish (#14)
1 parent 6097bc3 commit 6909a5a

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Publish
1+
name: Publish Package
22

33
on:
4-
release:
5-
types: [published]
6-
workflow_dispatch:
4+
push:
5+
tags:
6+
- 'v*'
77

88
permissions:
99
id-token: write # Required for OIDC
@@ -17,12 +17,8 @@ jobs:
1717

1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version: '20'
20+
node-version: '24'
2121
registry-url: 'https://registry.npmjs.org'
22-
2322
- run: npm ci
2423
- run: npm run build --if-present
25-
26-
- run: npm publish --access public
27-
env:
28-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24+
- run: npm publish

0 commit comments

Comments
 (0)