Skip to content

ci(stable): improve workflow with semantic-release #4

ci(stable): improve workflow with semantic-release

ci(stable): improve workflow with semantic-release #4

name: Publish Stable
on:
push:
branches:
- stable
jobs:
publish:
strategy:
fail-fast: false
matrix:
include:
- package: 'lasfoiawbp'
folder: '.'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org/'
always-auth: true
cache: pnpm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Install Dependencies
run: pnpm install
- name: Build Project
run: pnpm build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Provided by GitHub Actions
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: npx semantic-release