Skip to content

feat: add cell formatting history #3

feat: add cell formatting history

feat: add cell formatting history #3

Workflow file for this run

name: Publish Package
on:
push:
tags:
- "@vectojs/sheets-core@*"
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install --frozen-lockfile
- name: Verify release tag matches package version
env:
TAG: ${{ github.ref_name }}
run: |
EXPECTED_VERSION="${TAG#@vectojs/sheets-core@}"
PACKAGE_VERSION=$(bun -e "console.log(require('./package.json').version)")
if [ "$EXPECTED_VERSION" != "$PACKAGE_VERSION" ]; then
echo "::error::Tag version $EXPECTED_VERSION does not match package.json version $PACKAGE_VERSION"
exit 1
fi
- run: bun run format:check
- run: bun run lint
- run: bun test
- run: bun run build
- name: Configure npm registry auth
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
- run: npm publish --access public
- id: pack
run: |
npm pack
echo "tarball=$(find . -maxdepth 1 -name '*.tgz' -exec basename {} \;)" >> "$GITHUB_OUTPUT"
- uses: softprops/action-gh-release@v3
with:
files: ${{ steps.pack.outputs.tarball }}
name: ${{ github.ref_name }}