Skip to content

chore: Also build alpha branch #43

chore: Also build alpha branch

chore: Also build alpha branch #43

Workflow file for this run

name: Build-Test-Release
on:
push:
branches:
- master
- alpha
jobs:
build-test-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
# Keep in sync with volta -> node version in package.json
node-version: 16
- name: Install dependencies
run: yarn
- name: Sync with crowdin
run: yarn crowdin:sync
- name: Build package
run: yarn build
- name: Run tests
run: yarn test
- name: Clean up package.json
# We used to use the clean-publish package to do this, but when
# we switched to using semantic-release, we had to do it manually.
run: npm pkg delete scripts && npm pkg delete devDependencies && npm pkg delete dependencies
- name: Publish package
id: semantic_release
env:

Check failure on line 42 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 42
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
- name: Set output if new release published to npm
if: success() && steps.semantic_release.outputs.new_release_published == 'true'
run: echo "::set-output name=new_release_published::true"