Skip to content

Commit

Permalink
feat: init
Browse files Browse the repository at this point in the history
  • Loading branch information
csg01123119 committed Aug 23, 2023
1 parent 40f28d8 commit 76a7b01
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/action-demo.yml
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
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
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 }}

0 comments on commit 76a7b01

Please sign in to comment.