-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.12 KB
/
publish-package.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
name: Publish package
on:
push:
tags:
- '*'
jobs:
publish-package:
name: Run yarn publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Publish new version to NPM
uses: actions/setup-node@v1
with:
node-version: 16.14.2
registry-url: 'https://registry.npmjs.org'
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
update-docs:
name: Update documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Generate docs
uses: actions/setup-node@v1
with:
node-version: 16.14.2
registry-url: 'https://registry.npmjs.org'
- run: |
yarn install
yarn run generate-docs
- name: Deploy
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GH_TOKEN }}
repository-name: ArSn/jay-gee-eff-for-web-docs
branch: master
folder: docs