Skip to content

chore: read package.json using fs instead of import assertion #2

chore: read package.json using fs instead of import assertion

chore: read package.json using fs instead of import assertion #2

Workflow file for this run

name: Publish
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22.x"
cache: "yarn"
- name: Install dependencies
run: yarn
- name: Build
run: npm run build
- name: Publish to NPM
run: |
npm set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
- name: Publish to GitHub
uses: softprops/action-gh-release@v2
with:
make_latest: true
generate_release_notes: true