We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b356daa commit 5a8a18eCopy full SHA for 5a8a18e
2 files changed
.github/workflows/publish.yml
@@ -0,0 +1,29 @@
1
+name: Publish Package
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
8
+permissions:
9
+ id-token: write # Required for OIDC
10
+ contents: read
11
12
+jobs:
13
+ publish:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v4
17
18
+ - uses: actions/setup-node@v4
19
+ with:
20
+ node-version: '20'
21
+ registry-url: 'https://registry.npmjs.org'
22
23
+ # Ensure npm 11.5.1 or later is installed
24
+ - name: Update npm
25
+ run: npm install -g npm@latest
26
+ - run: npm ci
27
+ - run: npm run build --if-present
28
+ - run: npm test
29
+ - run: npm publish
.gitignore
@@ -10,6 +10,10 @@
!/tests/**
!vitest.config.ts
+# github workflows
+!/.github
+!/.github/**
# misc files
!tsdown.config.ts
!.gitignore
0 commit comments