More attempts to fix CI #619
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Beta | |
on: | |
push: | |
branches: | |
- beta | |
jobs: | |
npm-publish: | |
name: npm-publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- id: check | |
uses: EndBug/[email protected] | |
with: | |
diff-search: true | |
- name: Set up Node | |
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta') | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
- name: Setup pnpm | |
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta') | |
run: npm i -g pnpm@10 | |
- name: Install | |
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta') | |
run: pnpm install | |
- name: Test | |
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta') | |
run: pnpm test | |
- name: Setup publish token | |
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta') | |
run: echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
- name: Publish | |
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta') | |
run: pnpm publish --tag beta |