-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 931 Bytes
/
release-package.yml
File metadata and controls
36 lines (34 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Release
'on':
workflow_call:
secrets:
NPM_TOKEN:
env:
FORCE_COLOR: 1
NPM_CONFIG_COLOR: always
HUSKY: 0
jobs:
release:
runs-on: ubuntu-latest
if: github.event_name == 'push'
permissions:
contents: write
id-token: write
issues: write
pull-requests: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- run: corepack enable npm
- name: Setup node
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version-file: .nvmrc
cache: npm
- run: npm install -g corepack@latest
- run: corepack npm clean-install
- run: corepack npm audit signatures
- name: semantic-release
run: npx semantic-release@25.0.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}