Skip to content

Commit efd03e3

Browse files
authored
fix(ci): Autopublish to npm (#131)
1 parent 2fc4bcc commit efd03e3

3 files changed

Lines changed: 45 additions & 54 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/npm-publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish to NPM
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
publish-npm:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v6
13+
- uses: actions/setup-node@v6
14+
with:
15+
node-version: 24
16+
registry-url: "https://registry.npmjs.org"
17+
- name: Build
18+
run: npm ci --progress=false
19+
- name: Publish to NPM
20+
run: npm publish --access=public
21+
env:
22+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
6+
permissions:
7+
contents: read
8+
9+
name: release-please
10+
11+
# https://github.com/googleapis/release-please-action
12+
jobs:
13+
release-please:
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: googleapis/release-please-action@v4
20+
with:
21+
token: ${{ secrets.RELEASE_PLEASE_TOKEN_PUBLIC_REPOS }}
22+
release-type: node
23+
target-branch: ${{ github.ref_name }}

0 commit comments

Comments
 (0)