Update dependencies #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish package to GitHub Packages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
# Use Node.js with pnpm caching | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20.x" # replace with your desired Node.js version | |
registry-url: "https://registry.npmjs.org" | |
- name: Install pnpm | |
run: npm install -g pnpm | |
# Install dependencies | |
- name: Install dependencies | |
run: pnpm install | |
# Build package | |
- name: Build package | |
run: pnpm build | |
- run: pnpm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |