Skip to content

Commit f01b75b

Browse files
committed
package release
1 parent d809bff commit f01b75b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/publish-release.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ jobs:
1919
node-version: '20.x'
2020
registry-url: 'https://registry.npmjs.org'
2121

22-
- run: npm install
22+
- name: Install dependencies
23+
run: npm install
2324

24-
- run: npm publish --provenance --access public
25+
- name: Publish package
26+
run: npm publish --provenance --access public
2527
env:
2628
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2729

@@ -30,6 +32,7 @@ jobs:
3032
permissions:
3133
contents: read
3234
id-token: write
35+
packages: write
3336
steps:
3437
- uses: actions/checkout@v4
3538

@@ -39,9 +42,11 @@ jobs:
3942
registry-url: 'https://npm.pkg.github.com'
4043
scope: '@hostinger'
4144

42-
- run: npm install
45+
- name: Install dependencies
46+
run: npm install
4347

44-
- run: |
48+
- name: Publish package
49+
run: |
4550
sed -i 's+"name": ".*+"name": "@${{ github.repository }}",+gI' ./package.json
4651
npm publish --provenance --access public
4752
env:

0 commit comments

Comments
 (0)