Skip to content

feat: setup semantic release #1

feat: setup semantic release

feat: setup semantic release #1

Workflow file for this run

name: build
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
on:
push:
branches:
- main
- beta
jobs:
run_build:
# Running only on self hosted runner which has tag "build"
runs-on: [self-hosted, build]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: write
actions: write
issues: write
pull-requests: write
environment: build
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- id: install-dev
name: Install npm development dependencies
run: npm ci --no-audit --silent
- id: build
name: Build
run: npm run build
- id: install-prod
name: Install npm production dependencies
run: npm ci --no-audit --silent --production
- id: semantic-release
name: Run semantic release
run: npm run semantic-release
env:
CI: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_REGISTRY: ${{ env.NPM_CONFIG_REGISTRY }}