Skip to content

Commit

Permalink
chore(cd): added actions for npm release
Browse files Browse the repository at this point in the history
  • Loading branch information
CorentinTh committed Jan 22, 2025
1 parent 0e99669 commit ad63581
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/npm-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release new versions

on:
push:
tags:
- 'v*.*.*'

Check failure on line 7 in .github/workflows/npm-release.yaml

View workflow job for this annotation

GitHub Actions / CI - Lib

Trailing spaces not allowed
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'

Check failure on line 26 in .github/workflows/npm-release.yaml

View workflow job for this annotation

GitHub Actions / CI - Lib

Must use plain style scalar
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 }}

0 comments on commit ad63581

Please sign in to comment.