Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 30, 2023
1 parent 2db6881 commit 1700d8a
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,29 @@ jobs:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: checkout
uses: actions/checkout@v3

- name: setup node env
uses: actions/setup-node@v3
with:
token: ${{ secrets.GH_PAT }}
node-version: 16
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'

- name: build
run: |
yarn install --immutable | grep -v 'YN0013'
yarn build
- name: publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo npmAuthToken: "${NPM_TOKEN}" >> .yarnrc.yml
echo npmAuthToken: "\${NPM_TOKEN}" >> ./.yarnrc.yml
yarn publish
- name: cleanup
run: |
git checkout ./.yarnrc.yml

0 comments on commit 1700d8a

Please sign in to comment.