File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 19
19
node-version : ' 20.x'
20
20
registry-url : ' https://registry.npmjs.org'
21
21
22
- - run : npm install
22
+ - name : Install dependencies
23
+ run : npm install
23
24
24
- - run : npm publish --provenance --access public
25
+ - name : Publish package
26
+ run : npm publish --provenance --access public
25
27
env :
26
28
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
27
29
30
32
permissions :
31
33
contents : read
32
34
id-token : write
35
+ packages : write
33
36
steps :
34
37
- uses : actions/checkout@v4
35
38
39
42
registry-url : ' https://npm.pkg.github.com'
40
43
scope : ' @hostinger'
41
44
42
- - run : npm install
45
+ - name : Install dependencies
46
+ run : npm install
43
47
44
- - run : |
48
+ - name : Publish package
49
+ run : |
45
50
sed -i 's+"name": ".*+"name": "@${{ github.repository }}",+gI' ./package.json
46
51
npm publish --provenance --access public
47
52
env :
You can’t perform that action at this time.
0 commit comments