diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4d2cd741..b6e39fd4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,9 +17,21 @@ 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 bodhibot@users.noreply.github.com @@ -27,19 +39,6 @@ jobs: - 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