Skip to content

Commit de688ee

Browse files
authored
Merge pull request #250 from scheduleonce/feature/composite-action
Use to use composite action
2 parents 2dbc8de + 99c3fdd commit de688ee

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,17 @@ name: Publish Package to npmjs
55
on:
66
release:
77
types: [published]
8+
workflow_dispatch:
9+
10+
permissions:
11+
id-token: write
12+
contents: read
13+
814
jobs:
915
build:
1016
runs-on: ubuntu-latest
1117
steps:
1218
- uses: actions/checkout@v4
13-
# setup .npmrc file to publish to npm
14-
- uses: actions/setup-node@v3
15-
with:
16-
node-version: '20.x'
17-
registry-url: 'https://registry.npmjs.org'
18-
- 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 }}
19+
20+
- name: Publish to npm
21+
uses: scheduleonce/github-workflows/.github/actions/npm-publish@feature/npm-publish-action

0 commit comments

Comments
 (0)