0.1.4 #16
Workflow file for this run
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
# Simple workflow for deploying static content to GitHub Pages | |
name: Publish to npm | |
on: | |
release: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Deno | |
uses: denoland/setup-deno@v2.0.0 | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v2 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install deps | |
run: bun i | |
- name: Build | |
run: bun run build:lib | |
- name: Update version in package.json | |
run: | | |
VERSION=${{ github.event.release.tag_name }} | |
echo "Updating package.json version to $VERSION" | |
npm version --no-git-tag-version $VERSION | |
- name: Publish to npm | |
run: npm publish --provenance --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_SECRET }} |