Skip to content

Commit

Permalink
👷 Update release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Aug 30, 2023
1 parent bfec367 commit 9aa5c7e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/canary-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,29 @@ jobs:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Needed to get the commit number with "git rev-list --count HEAD"

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: yarn

- name: Prepare git
run: |
git config --global user.name "NoneBot"
git config --global user.email "[email protected]"
git config user.name noneflow[bot]
git config user.email 129742071+noneflow[bot]@users.noreply.github.com
git fetch
git checkout master
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- name: Installation
run: yarn

- name: Publish Canary release
run: |
yarn build
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,25 @@ jobs:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: yarn

- name: Prepare git
run: |
git config --global user.name "NoneBot"
git config --global user.email "[email protected]"
git config user.name noneflow[bot]
git config user.email 129742071+noneflow[bot]@users.noreply.github.com
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- name: Installation
run: yarn

- name: Publish release
run: |
yarn build
Expand Down

0 comments on commit 9aa5c7e

Please sign in to comment.