Skip to content

fix: update release to run build #169

fix: update release to run build

fix: update release to run build #169

Workflow file for this run

name: CI Workflow
on: push
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [lts/*]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
persist-credentials: false
- name: Install dependencies
run: yarn install
- name: Run tests
run: yarn run test
build:
env:
NODE_OPTIONS: --max-old-space-size=4096
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["lts/*"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
persist-credentials: false
- run: yarn install
- run: yarn lint
- run: yarn build
release:
runs-on: ubuntu-latest
needs: [build]
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
if: github.ref == 'refs/heads/main'
strategy:
matrix:
node-version: ["lts/*"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
persist-credentials: false
- run: yarn install
- run: yarn build
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}