diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..a2c61a1cc --- /dev/null +++ b/.github/workflows/release.yml @@ -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}} diff --git a/package.json b/package.json index 6b0457400..590f0fe81 100644 --- a/package.json +++ b/package.json @@ -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" }