feat(ci): deploy to npm on tag

This commit is contained in:
Elian Doran 2025-01-06 18:52:09 +02:00
parent 7d4f8530a7
commit 2774b78b9f
No known key found for this signature in database
2 changed files with 28 additions and 1 deletions

26
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Release
on:
push:
tags:
- 'v*'
jobs:
publish-package:
name: Publish package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
always-auth: true
- run: |
corepack enable &&
corepack install
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Publish package
run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

View File

@ -89,5 +89,6 @@
"bugs": {
"url": "https://github.com/ThomasAitken/ckeditor5-footnotes/issues"
},
"homepage": "https://github.com/ThomasAitken/ckeditor5-footnotes#readme"
"homepage": "https://github.com/ThomasAitken/ckeditor5-footnotes#readme",
"packageManager": "yarn@1.22.22"
}