Skip to content

Commit e603275

Browse files
committed
Add actions
1 parent 63726b4 commit e603275

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
validate:
9+
name: Release
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repo
13+
uses: actions/checkout@v4
14+
15+
- name: Setup node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version-file: ".nvmrc"
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Setup npm auth
24+
run: |
25+
echo "registry=https://registry.npmjs.org" >> ~/.npmrc
26+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
27+
28+
- name: Publish
29+
run: npm publish

.github/workflows/validate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
uses: actions/setup-node@v4
1818
with:
1919
node-version-file: ".nvmrc"
20-
20+
2121
- name: Install dependencies
2222
run: npm install
23-
23+
2424
- name: Run validations
2525
run: npm run validate

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@
6868
"typescript": "^5.3.3"
6969
},
7070
"publishConfig": {
71-
"access": "public",
72-
"provenance": true
71+
"access": "public"
7372
},
7473
"engines": {
7574
"node": ">=18.0.0"

0 commit comments

Comments
 (0)