Skip to content

Commit 91f4719

Browse files
committed
fix: Debug publish job
1 parent 7d37a34 commit 91f4719

File tree

2 files changed

+36
-7
lines changed

2 files changed

+36
-7
lines changed

.github/workflows/publish.yml

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,45 @@ on:
44
push:
55
tags:
66
- 'v*'
7-
release:
8-
types:
9-
- published
107

118
jobs:
129
# build-and-test:
1310
# uses: ./.github/workflows/main.yml
1411

1512
publish:
1613
# needs: build-and-test
17-
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/[email protected]
18-
secrets:
19-
npm-token: ${{ secrets.NPM_TOKEN }}
14+
# uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/[email protected]
15+
# secrets:
16+
# npm-token: ${{ secrets.NPM_TOKEN }}
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
packages: write
21+
id-token: write
22+
steps:
23+
- name: Ensure npm-token
24+
run: |
25+
if [ -n "${{ secrets.NPM_TOKEN }}" ]; then
26+
echo "`npm-token` secret is set"
27+
else
28+
echo "Missing `npm-token` secret (required unless `dry-run: true`)"
29+
exit 1
30+
fi
31+
32+
- uses: actions/checkout@v4
33+
34+
- uses: actions/setup-node@v4
35+
with:
36+
node-version: 20
37+
# scope: '@iexec'
38+
39+
- name: Install dependencies
40+
run: npm ci
41+
42+
- name: Run build
43+
run: npm run build
44+
45+
- name: Publish package
46+
env:
47+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
48+
run: npm publish --access public

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@iexec/poco",
3-
"version": "5.6.0-rc1",
3+
"version": "5.6.0-rc3",
44
"description": "",
55
"author": "iExec",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)