Skip to content

GHA workflow

GHA workflow #6

Workflow file for this run

name: Build-Test-Release
on:
push:
branches:
- master
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: Build package
run: yarn build
- name: Run tests
run: yarn test
- name: Create clean package ready to publish
# strips out the scripts, dependencies, etc.
run: npx clean-publish --without-publish --temp-dir package
- name: Switch to package directory
run: cd package
# - name: Publish package
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: npx semantic-release