Skip to content

Commit 2fb28af

Browse files
committed
Added github workflow without reusable workflow
1 parent f25ce81 commit 2fb28af

1 file changed

Lines changed: 24 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ on:
66
- 'v*'
77

88
jobs:
9-
publish:
9+
npm-publish:
1010
runs-on: ubuntu-latest
11-
11+
1212
permissions:
1313
contents: read
1414
id-token: write
15-
15+
1616
steps:
1717
- name: Checkout repository
1818
uses: actions/checkout@v4
@@ -27,3 +27,24 @@ jobs:
2727
run: npm publish --provenance --access public
2828
env:
2929
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
30+
github-publish:
31+
runs-on: ubuntu-latest
32+
33+
permissions:
34+
contents: read
35+
id-token: write
36+
37+
steps:
38+
- name: Checkout repository
39+
uses: actions/checkout@v4
40+
41+
- name: Setup Node.js
42+
uses: actions/setup-node@v4
43+
with:
44+
node-version: '20'
45+
registry-url: 'https://npm.pkg.github.com'
46+
47+
- name: Publish to npm
48+
run: npm publish
49+
env:
50+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)