forked from intacct/intacct-sdk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (53 loc) · 1.29 KB
/
main.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
53
54
55
56
57
58
name: CD
on:
push:
branches:
- main
permissions:
id-token: write
contents: write
packages: write
repository-projects: read
issues: read
env:
AWS_DEFAULT_REGION: us-west-2
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
ci:
uses: ./.github/workflows/ci-workflow.yml
build:
needs: ci
runs-on: ubuntu-22.04
steps:
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: actions/checkout@v3
- run: yarn install
- run: yarn build
- uses: actions/upload-artifact@v3
with:
name: dist
path: dist
release:
needs: [build]
runs-on: ubuntu-22.04
steps:
- uses: actions/setup-node@v3
with:
node-version: 14
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: cycjimmy/semantic-release-action@v3
with:
semantic_version: 19.0.3
extra_plugins: |
@semantic-release/release-notes-generator
@semantic-release/changelog
@semantic-release/github
@semantic-release/npm
@semantic-release/git@10.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: git push && git push --tags