Skip to content

feat(repo): initial commit #1

feat(repo): initial commit

feat(repo): initial commit #1

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Node.js CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
release:
name: Build, Publish Tag & Release
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18.x]
# os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Build
run: pnpm build
- name: Release to npm & git
run: pnpm semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}