Skip to content

Update version number in package.json #6

Update version number in package.json

Update version number in package.json #6

Workflow file for this run

on:
push:
branches: ["main"]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20"
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- uses: JS-DevTools/npm-publish@v3
name: "Publish to npm"
with:
token: ${{ secrets.NPM_TOKEN }}
provenance: true
access: "public"
- uses: JS-DevTools/npm-publish@v3
name: "Publish to GitHub Packages"
with:
token: ${{ secrets.GITHUB_TOKEN }}
registry: "https://npm.pkg.github.com"
provenance: true
access: "public"