We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12b324b commit 8b574fcCopy full SHA for 8b574fc
.github/workflows/ci.yml
@@ -45,6 +45,9 @@ jobs:
45
needs: [ compile, test ]
46
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
47
runs-on: ubuntu-latest
48
+ permissions:
49
+ contents: read # Required for checkout
50
+ id-token: write # Required for OIDC
51
steps:
52
- name: Checkout repo
53
uses: actions/checkout@v6
@@ -63,7 +66,6 @@ jobs:
63
66
64
67
- name: Publish to npm
65
68
run: |
- npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
69
publish() { # use latest npm to ensure OIDC support
70
npx -y npm@latest publish "$@"
71
}
@@ -73,6 +75,4 @@ jobs:
73
75
publish --access public --tag beta
74
76
else
77
publish --access public
- fi
- env:
78
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+ fi
0 commit comments