-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (43 loc) · 1.16 KB
/
deploy.yaml
File metadata and controls
43 lines (43 loc) · 1.16 KB
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
name: deploy
on:
release:
types:
- published
jobs:
pre-check:
runs-on: ubuntu-24.04
permissions:
contents: read
timeout-minutes: 10
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: 'false'
- uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
with:
node-version: '22'
- run: npm ci
- run: npm run lint
- run: npm run type-check
- run: npm run test
deploy:
runs-on: ubuntu-24.04
needs: [pre-check]
permissions:
contents: read
id-token: write
timeout-minutes: 10
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: 'false'
- uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
scope: '@chatwork'
- run: npm ci
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}