-
-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (41 loc) · 977 Bytes
/
release.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Release
permissions:
actions: write
deployments: write
packages: write
pull-requests: write
issues: write
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [18]
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
with:
node_version: ${{ matrix.node_version }}
git_bot_token: ${{ secrets.GITHUB_TOKEN }}
- name: Test
uses: ./.github/actions/test
release:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs: [test]
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
with:
git_bot_token: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: ./.github/actions/release
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
npm_token: ${{ secrets.NPM_TOKEN }}