Skip to content

chore: Move workflow to semantic release #13

chore: Move workflow to semantic release

chore: Move workflow to semantic release #13

Workflow file for this run

name: Create release and publish to npm
on:
push:
branches:
- master
permissions:
contents: write
pages: write
id-token: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: "https://registry.npmjs.org/"
- uses: pnpm/action-setup@v4
- name: Install dependencies
run: pnpm install
- name: Build the project
run: pnpm run build
- name: Semantic Release 🚀
id: semantic
run: npx semantic-release --branches master
env:
GH_TOKEN: ${{ secrets.OPENINC_SEMANTIC_RELEASE }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_ORG_OPENINC }}