The minimalistic document archiving platform.
chore(cd): added actions for npm release
Corentin Thomassetad6358195e96
diff --git a/.github/workflows/npm-release.yaml b/.github/workflows/npm-release.yamlnew file mode 100644index 00000000..1b043978--- /dev/null+++ b/.github/workflows/npm-release.yaml@@ -0,0 +1,37 @@+name: Release new versions++on:+ push:+ tags:+ - 'v*.*.*'++permissions:+ contents: read+ packages: write++jobs:+ publish-lib:+ name: Publish @papra/lecture to npm+ runs-on: ubuntu-latest+ permissions:+ contents: read+ id-token: write++ steps:+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4+ - run: corepack enable+ - uses: actions/setup-node@v4+ with:+ node-version: 22+ cache: 'pnpm'+ registry-url: 'https://registry.npmjs.org'++ - name: Install dependencies+ run: pnpm i+ working-directory: ./++ - name: Publish to npm+ run: pnpm publish --access public --no-git-checks+ env:+ NPM_CONFIG_PROVENANCE: true+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}