Skip to content

Commit

Permalink
fix: publish CI
Browse files Browse the repository at this point in the history
  • Loading branch information
flyfishzy committed Feb 25, 2022
1 parent ceb851e commit 80d4e6d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
- 'webpack-plugin*' # Push events to matching webpack-plugin*, i.e. [email protected]

jobs:
build:
Expand All @@ -26,8 +25,10 @@ jobs:

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm run lint

- name: Test
run: pnpm run test

Expand All @@ -41,7 +42,15 @@ jobs:
body: |
Please refer to [CHANGELOG.md](https://github.com/originjs/openharmony-polyfill/blob/main/packages/polyfill/CHANGELOG.md) for details.
- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

- name: Publish to npm registry
run: pnpm -r publish --access public
run: pnpm -r publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 comments on commit 80d4e6d

Please sign in to comment.