Skip to content

Commit 4e8738e

Browse files
committed
updated publish workflow
1 parent 0edab1a commit 4e8738e

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

.github/workflows/npm-release.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: NPM Release
1+
name: NPM Hardhat-Polkadot Release
22

33
on:
44
release:
@@ -29,15 +29,33 @@ jobs:
2929
- name: Set version
3030
run: npm version --no-git-tag-version ${{github.event.release.tag_name}}
3131

32-
- name: npm pack
32+
- name: pack hardhat-polkadot-resolc
3333
run: npm pack
34+
working-directory: "./packages/hardhat-polkadot-resolc"
35+
36+
- name: pack hardhat-polkadot-node
37+
run: npm pack
38+
working-directory: "./packages/hardhat-polkadot-node"
39+
40+
- name: pack hardhat-polkadot
41+
run: npm pack
42+
working-directory: "./packages/hardhat-polkadot"
43+
44+
- name: move_to
45+
run: |
46+
mkdir -p packs
47+
cp ./packages/hardhat-polkadot-resolc/*.tgz packs/
48+
cp ./packages/hardhat-polkadot-node/*.tgz packs/
49+
cp ./packages/hardhat-polkadot/*.tgz packs/
50+
ls -ltr packs
3451
3552
- uses: actions/upload-artifact@v4
36-
with:np
37-
name: package
38-
path: 'parity-revive-*.tgz'
53+
with:
54+
name: packages-${{ github.sha }}
55+
path: packs
3956

40-
- uses: octokit/request-action@bbedc70b1981e610d89f1f8de88311a1fc02fb83
57+
- name: name: NPM Publish automation
58+
uses: octokit/request-action@bbedc70b1981e610d89f1f8de88311a1fc02fb83
4159
with:
4260
route: POST /repos/paritytech/npm_publish_automation/actions/workflows/publish.yml/dispatches
4361
ref: main

0 commit comments

Comments
 (0)