Skip to content

Commit 4abed5e

Browse files
committed
ci(release): updated to modern conventions
1 parent 8db90f4 commit 4abed5e

File tree

2 files changed

+29
-18
lines changed

2 files changed

+29
-18
lines changed

.github/workflows/node-ci.yml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Node.js CI
33
push:
44
branches:
55
- master
6-
- alpha
76
- beta
87
- renovate/**
98
pull_request:
@@ -27,20 +26,15 @@ jobs:
2726
- run: npm audit signatures
2827
- run: npm test
2928
release:
30-
needs: verify
31-
runs-on: ubuntu-latest
32-
steps:
33-
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
34-
- name: Read .nvmrc
35-
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
36-
id: nvm
37-
- name: Setup node
38-
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0
39-
with:
40-
node-version: ${{ steps.nvm.outputs.NVMRC }}
41-
- uses: bahmutov/npm-install@c5482d70ec8706408996e31ac94075030694993f # v1.8.32
42-
- name: semantic-release
43-
run: npx semantic-release
44-
env:
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
29+
needs:
30+
- verify
31+
permissions:
32+
contents: write
33+
id-token: write
34+
issues: write
35+
pull-requests: write
36+
uses: form8ion/.github/.github/workflows/release-package.yml@master
37+
secrets:
38+
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
39+
permissions:
40+
contents: read

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Release
2+
'on':
3+
push:
4+
branches:
5+
- alpha
6+
permissions:
7+
contents: read
8+
jobs:
9+
release:
10+
permissions:
11+
contents: write
12+
id-token: write
13+
issues: write
14+
pull-requests: write
15+
uses: form8ion/.github/.github/workflows/release-package.yml@master
16+
secrets:
17+
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)