Skip to content

Commit

Permalink
fix ci publish (#1036)
Browse files Browse the repository at this point in the history
* fix ci build

* fix ci publish

* test

* Revert "test"

This reverts commit bd263ad.
  • Loading branch information
shunjizhan authored Oct 11, 2024
1 parent 4cf0691 commit 6f00def
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,28 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: setup node
uses: actions/setup-node@v4
with:
submodules: 'recursive'
node-version: 20

- name: setup yarn
run: npm install -g yarn

- name: install deps
run: yarn install --immutable

- name: build
run: yarn build

- name: git config email
run: git config --local user.email [email protected]

- name: git config name
run: git config --local user.name Bodhibot

- name: setup node env
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'

- name: install dependencies
run: yarn install --immutable

- name: build packages
run: yarn build

# Writes token to .yarnrc.yml. If written directly in .yarnrc.yml, it will cause an error
- run: |
echo npmAuthToken: "\${NPM_AUTH_TOKEN}" >> ./.yarnrc.yml
Expand Down

0 comments on commit 6f00def

Please sign in to comment.