Skip to content

Commit 18b332e

Browse files
committed
fix: Reuse resuable workflow
1 parent e58b8d2 commit 18b332e

File tree

1 file changed

+3
-36
lines changed

1 file changed

+3
-36
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,6 @@ jobs:
1111

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

0 commit comments

Comments
 (0)