-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (54 loc) · 1.74 KB
/
release.yaml
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
53
54
55
56
57
58
59
60
61
62
name: RELEASE AND PUBLISH
on:
workflow_dispatch:
jobs:
test:
uses: ./.github/workflows/test.yml
release:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: mkdir -p ./dist
- name: Download the build artifact
uses: actions/download-artifact@v3
with:
name: distribution
path: ./dist
- name: Package the build artifact
run: npm pack ./dist
- name: Get Package Version
run: |
echo "RELEASE_NAME=$(npm info ./ version)" >> $GITHUB_ENV
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: false
prerelease: false
generate_release_notes: true
tag_name: ${{ env.RELEASE_NAME }}
files: typedoc-theme-yaf-*.tgz
publish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: mkdir -p ./dist
- name: Download the build artifact
uses: actions/download-artifact@v3
with:
name: distribution
path: ./dist
- name: Publish to npm
uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish ./dist
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
document:
needs: release
uses: ./.github/workflows/docs.yml