Skip to content

Commit ae9de25

Browse files
authored
fix: fix publishing (#138)
1 parent f3db4b3 commit ae9de25

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

.github/workflows/npm-publish.yml

-5
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,5 @@ jobs:
3434
env:
3535
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3636
run: cd npm && npm publish --provenance --access public
37-
- name: Update version in deno.json
38-
run: |
39-
VERSION=$(cat version.txt) && jq --arg v "$VERSION" '.version = $v' deno.json > deno.json.tmp
40-
mv deno.json.tmp deno.json
41-
deno fmt deno.json
4237
- name: Publish to JSR
4338
run: npx jsr publish --allow-dirty

.github/workflows/release-please.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ jobs:
1414
with:
1515
private-key: ${{ secrets.APP_PRIVATE_KEY }}
1616
app-id: ${{ secrets.APP_ID }}
17-
- uses: google-github-actions/release-please-action@v3
17+
- uses: googleapis/release-please-action@v4
1818
with:
1919
release-type: simple
20-
package-name: "unpic"
21-
ssh-key: "${{ secrets.COMMIT_KEY }}"
2220
token: ${{ steps.get-token.outputs.token }}

release-please-config.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"packages": {
4+
".": {
5+
"extra-files": [
6+
{
7+
"type": "json",
8+
"path": "deno.json",
9+
"jsonpath": "$.version"
10+
}
11+
]
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)