We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df41dc7 commit 7855a88Copy full SHA for 7855a88
1 file changed
.github/workflows/ci.yml
@@ -9,6 +9,9 @@ on:
9
jobs:
10
build:
11
runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: read
14
+ id-token: write
15
steps:
16
- uses: actions/checkout@v4
17
with:
@@ -29,6 +32,5 @@ jobs:
29
32
- run: pnpm version $GITVERSION_SEMVER --no-git-tag-version
30
33
- run: pnpm install --frozen-lockfile
31
34
- run: pnpm build
- - run: pnpm publish --access public --no-git-checks
- env:
- NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
35
+ - if: github.event_name == 'push' && github.ref == 'refs/heads/main'
36
+ run: pnpm publish --access public --no-git-checks
0 commit comments