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.
2 parents 2dbc8de + 99c3fdd commit de688eeCopy full SHA for de688ee
1 file changed
.github/workflows/npm-publish.yml
@@ -5,19 +5,17 @@ name: Publish Package to npmjs
5
on:
6
release:
7
types: [published]
8
+ workflow_dispatch:
9
+
10
+permissions:
11
+ id-token: write
12
+ contents: read
13
14
jobs:
15
build:
16
runs-on: ubuntu-latest
17
steps:
18
- uses: actions/checkout@v4
- # setup .npmrc file to publish to npm
- - uses: actions/setup-node@v3
- with:
- node-version: '20.x'
- registry-url: 'https://registry.npmjs.org'
- - run: npm ci
19
- - run: npm run package
20
- # scoped packages are private by default so need to add public flag
21
- - run: npm run publish
22
- env:
23
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+ - name: Publish to npm
+ uses: scheduleonce/github-workflows/.github/actions/npm-publish@feature/npm-publish-action
0 commit comments