Skip to content

feat: auto-generate edited image when document has original file and … #30

feat: auto-generate edited image when document has original file and …

feat: auto-generate edited image when document has original file and … #30

Workflow file for this run

name: Publish Package
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org/'
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 10
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm test
- name: Run typecheck
run: pnpm run typecheck
- name: Publish
if: startsWith(github.ref, 'refs/tags/v')
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
git fetch --tags --force
# Configure allowed signers
git config --local --add gpg.ssh.allowedSignersFile ./allowed_signers
echo "GITHUB_REF->"$GITHUB_REF
# test tag signature
git tag -v $(git describe --tags --abbrev=0)
pnpm publish --no-git-checks