Skip to content

Commit 10c6d7c

Browse files
Merge pull request #55 from curvefi/chore/publish
chore: trusted publishing workflow
2 parents c5c28bc + 7259199 commit 10c6d7c

File tree

3 files changed

+19
-24
lines changed

3 files changed

+19
-24
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ name: Release & Publish
33
on:
44
push:
55
branches:
6-
- main
7-
- feat/init
6+
- master
87

98
jobs:
109
release:
1110
name: Release
1211
runs-on: ubuntu-latest
1312
steps:
1413
- name: Checkout code
15-
uses: actions/checkout@v4
14+
uses: actions/checkout@v5
1615
- name: get-npm-version
1716
id: package-version
1817
uses: martinbeentjes/npm-get-version-action@main
@@ -42,19 +41,13 @@ jobs:
4241
permissions:
4342
contents: read
4443
id-token: write
44+
environment: production
4545
steps:
46-
- uses: actions/checkout@v4
47-
- name: Setup node version
48-
uses: actions/setup-node@v4
46+
- uses: actions/checkout@v5
47+
- uses: actions/setup-node@v5
4948
with:
5049
node-version: 24
5150
cache: npm
52-
registry-url: 'https://registry.npmjs.org'
53-
- name: Install modules
54-
run: npm ci
55-
- name: Build
56-
run: npm run build
57-
- name: Publish to npm
58-
run: npm publish --access public
59-
env:
60-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
51+
- run: npm ci
52+
- run: npm run build
53+
- run: npm publish

package-lock.json

Lines changed: 10 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@curvefi/llamalend-api",
3-
"version": "1.0.41",
3+
"version": "1.0.42",
44
"description": "JavaScript library for Curve Lending",
55
"main": "lib/index.js",
66
"author": "Macket",

0 commit comments

Comments
 (0)