-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
csg01123119
committed
Aug 23, 2023
1 parent
40f28d8
commit 76a7b01
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: act-demo | ||
run-name: act-demo-runing | ||
on: | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
job1: | ||
environment: GANG-EVN | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
node-version: [10.x] | ||
env: | ||
OSS_ID: ${{ secrets.OSS_ID }} | ||
HUAN_VAR: ${{ vars.HUAN_VAR }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: echo "${{ secrets.OSS_ID }} = ${{ vars.HUAN_VAR }}" | ||
- run: npm install | ||
- run: npm run start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: [release] | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18 | ||
- run: npm i | ||
- run: npx semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |