-
Notifications
You must be signed in to change notification settings - Fork 25
44 lines (34 loc) · 859 Bytes
/
publish.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
name: "Publish"
on:
workflow_dispatch:
push:
branches:
- master
permissions:
id-token: write
contents: write
packages: write
jobs:
deploy:
runs-on: ubuntu-latest
name: "${{ github.ref_name }} "
env:
GH_TOKEN: ${{ secrets.ACCESS_TOKEN_GITHUB }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run test
- run: npm run build
- name: Publish
run: npm run semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_REGISTRY: https://registry.npmjs.org:8443/
- name: Deploy docs
run: npm run deploy-docs