Skip to content

fix git url

fix git url #38

Workflow file for this run

name: Test and Build
on:
push:
tags:
- '*.*.*'
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Set up Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Run tests
run: bun run test
- name: Build the library
run: bun run build-lib
- name: Publish to NPM
run: |
npm version $(echo ${GITHUB_REF#refs/tags/}) --no-git-tag-version
npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v2
with:
draft: false