Skip to content

Commit fccf19d

Browse files
author
pr0fix
committed
minor : add permissions to workflow
1 parent db46b1e commit fccf19d

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/pipeline.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches: [main]
99
types: [opened, synchronize]
1010

11+
permissions:
12+
contents: write
13+
packages: write
14+
1115
jobs:
1216
deployment_pipeline:
1317
runs-on: ubuntu-24.04
@@ -18,7 +22,7 @@ jobs:
1822
- uses: actions/setup-node@v4
1923
with:
2024
node-version: "20"
21-
registry-url: 'https://registry.npmjs.org'
25+
registry-url: "https://registry.npmjs.org"
2226

2327
- name: Install dependencies
2428
run: npm install
@@ -34,17 +38,17 @@ jobs:
3438
id: versioning
3539
uses: phips28/[email protected]
3640
with:
37-
minor-wording: 'minor'
38-
major-wording: 'major'
39-
patch-wording: 'patch,fix'
40-
rc-wording: 'rc,alpha,beta'
41-
skip-tag: 'true'
42-
default: 'patch'
41+
minor-wording: "minor"
42+
major-wording: "major"
43+
patch-wording: "patch,fix"
44+
rc-wording: "rc,alpha,beta"
45+
skip-tag: "true"
46+
default: "patch"
4347
env:
4448
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4549

4650
- name: Publish to npm
4751
if: ${{ github.event_name == 'push' }}
4852
run: npm publish --access public
4953
env:
50-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN}}
54+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)