Skip to content

Merge pull request #28 from ngraveio/release-pipeline #1

Merge pull request #28 from ngraveio/release-pipeline

Merge pull request #28 from ngraveio/release-pipeline #1

Workflow file for this run

name: Release
on:
push:
branches:
- main
- release
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-22.04
# GH Token permissions as required by semantic-release
# https://github.com/semantic-release/github?tab=readme-ov-file#github-authentication
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run build
run: yarn build
- name: Run test
run: yarn test
- name: Publish to NPM and create a GitHub release
run: npx semantic-release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ github.token }}