Skip to content

Commit 697a749

Browse files
ci(github): add workflow publish.yml
1 parent 30ce03c commit 697a749

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: publish
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: read
10+
packages: write
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v6
18+
19+
- name: Use Node.js
20+
uses: actions/setup-node@v6
21+
with:
22+
registry-url: https://npm.pkg.github.com
23+
scope: '@remarkablemark'
24+
25+
- name: Install dependencies
26+
run: npm ci --prefer-offline
27+
env:
28+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
30+
- name: Publish package
31+
run: npm publish
32+
env:
33+
NODE_AUTH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)