Commit b4e1781 1 parent c21bf5e commit b4e1781 Copy full SHA for b4e1781
File tree 2 files changed +17
-38
lines changed
2 files changed +17
-38
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- name : Deploy to Netlify
1
+ name : Release
2
2
3
3
on :
4
- push :
5
- branches :
6
- - main # Change this if you're deploying from another branch
4
+ workflow_dispatch :
7
5
8
6
jobs :
9
- deploy :
7
+ release :
8
+ name : Release
10
9
runs-on : ubuntu-latest
11
-
12
10
steps :
13
- - name : Checkout repository
14
- uses : actions/checkout@v4
11
+ - name : Checkout code
12
+ uses : actions/checkout@v3
15
13
16
- - name : Install Node.js
17
- uses : actions/setup-node@v4
14
+ - name : Setup Node.js
15
+ uses : actions/setup-node@v3
18
16
with :
19
- node-version : 18
17
+ node-version : ' 20'
18
+ cache : ' npm'
20
19
21
20
- name : Install dependencies
22
- run : npm install # Change this if using yarn or pnpm
21
+ run : npm install
23
22
24
- - name : Build the project
25
- run : npm run build:docs # Adjust according to your project
23
+ - name : Build library
24
+ run : npm run build:ngverse
26
25
27
- - name : Deploy to Netlify
28
- uses : nwtgck/actions-netlify@v2
29
- with :
30
- publish-dir : ' ./dist/docs/browser' # Change if your build output folder is different
31
- production-branch : main
32
- github-token : ${{ secrets.GITHUB_TOKEN }}
33
- deploy-message : ' Deployed from GitHub Actions'
26
+ - name : Run semantic-release
34
27
env :
35
- NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
36
- NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
37
- timeout-minutes : 1
28
+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
29
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
30
+ run : npm run semantic-release
You can’t perform that action at this time.
0 commit comments