Skip to content

Commit b610021

Browse files
Merge pull request #30 from CodeAnt-AI/push-branch
yml
2 parents 0ded3fa + d5e599d commit b610021

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,25 @@ name: Publish Package
22

33
on:
44
push:
5-
branches:
6-
- main
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
id-token: write
10+
contents: read
711

812
jobs:
913
publish:
1014
runs-on: ubuntu-latest
11-
permissions:
12-
contents: read
1315
steps:
1416
- uses: actions/checkout@v4
1517

1618
- uses: actions/setup-node@v4
1719
with:
1820
node-version: '20'
1921
registry-url: 'https://registry.npmjs.org'
22+
package-manager-cache: false
2023

2124
- run: npm ci
2225

2326
- run: npm publish --access public
24-
env:
25-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)