Skip to content

Commit

Permalink
chore(ci): modify CI scripts (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quramy committed Oct 12, 2023
1 parent 7e083ba commit aea0a36
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: build

on: [pull_request, push]
on:
pull_request:
push:
branches:
- master

jobs:
build:
Expand All @@ -16,6 +20,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: npm install, build
run: |
npm ci
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: publish

on: push
on:
push:
tags:
- '*'

jobs:
publish:
Expand All @@ -16,6 +19,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: npm publish
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ~/.npmrc
Expand Down

0 comments on commit aea0a36

Please sign in to comment.