Skip to content

Commit 20a3b30

Browse files
committed
wip
1 parent f44b248 commit 20a3b30

File tree

4 files changed

+3685
-1215
lines changed

4 files changed

+3685
-1215
lines changed

.github/workflows/npm-release.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: NPM Release
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
env:
8+
CI: true
9+
10+
jobs:
11+
publish:
12+
name: Build & Publish to NPM
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 22.x
22+
23+
- name: Install
24+
run: yarn install --immutable
25+
26+
- name: update-resolc
27+
run: yarn update-resolc
28+
29+
- name: Build
30+
run: yarn build
31+
32+
- name: Set version
33+
run: npm version --no-git-tag-version ${{github.event.release.tag_name}}
34+
35+
- name: npm pack
36+
run: npm pack
37+
38+
- uses: actions/upload-artifact@v4
39+
with:
40+
name: package
41+
path: 'parity-revive-*.tgz'
42+
43+
- uses: octokit/request-action@bbedc70b1981e610d89f1f8de88311a1fc02fb83
44+
with:
45+
route: POST /repos/paritytech/npm_publish_automation/actions/workflows/publish.yml/dispatches
46+
ref: main
47+
inputs: '${{ format(''{{ "repo": "{0}", "run_id": "{1}" }}'', github.repository, github.run_id) }}'
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.NPM_PUBLISH_AUTOMATION_TOKEN }}

js/resolc/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@
2626
"devDependencies": {
2727
"@eslint/js": "^9.14.0",
2828
"@openzeppelin/contracts": "5.1.0",
29+
"@types/node": "^22.14.1",
2930
"eslint": "^9.14.0",
3031
"globals": "^15.12.0",
31-
"tar": "^7.4.3",
3232
"typescript": "^5.6.3",
3333
"typescript-eslint": "^8.13.0"
3434
},
3535
"dependencies": {
36-
"@types/node": "^22.9.0",
3736
"commander": "^13.1.0",
3837
"package-json": "^10.0.1",
3938
"solc": "^0.8.29"

0 commit comments

Comments
 (0)