Skip to content

Commit ccf0af3

Browse files
committed
ready for v2
1 parent 474c590 commit ccf0af3

File tree

3 files changed

+9
-48
lines changed

3 files changed

+9
-48
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,7 @@ env:
99

1010
jobs:
1111

12-
# copy dependencies from
13-
# discojs/package.json
14-
# to
15-
# discojs/discojs-web/package.json
16-
# and
17-
# discojs/discojs-node/package.json
18-
prepare-dependencies:
12+
release:
1913
runs-on: ubuntu-latest
2014
defaults:
2115
run:
@@ -25,53 +19,20 @@ jobs:
2519
- uses: actions/setup-node@v3
2620
with:
2721
node-version: ${{ env.node_version }}
28-
cache: npm
29-
cache-dependency-path: discojs/package-lock.json
30-
- run: npm ci
31-
- run: npx ts-node publish.ts
32-
33-
# publish the "@epfml/discojs" package based off the compiled code in
34-
# discojs/discojs-web/dist/
35-
discojs:
36-
needs: prepare-dependencies
37-
runs-on: ubuntu-latest
38-
defaults:
39-
run:
40-
working-directory: discojs/discojs-web/
41-
steps:
42-
- uses: actions/checkout@v3
43-
- uses: actions/setup-node@v3
44-
with:
45-
node-version: ${{ node_version }}
4622
registry-url: https://registry.npmjs.org
4723
cache: npm
4824
cache-dependency-path: discojs/package-lock.json
4925
- run: npm ci
50-
working-directory: discojs/
5126
- run: npm run build
27+
# copy dependencies from discojs to discojs/discojs-node and discojs/discojs-web
28+
- run: npx ts-node publish.ts
29+
# publish @epfml/discojs
5230
- run: npm publish --access public
31+
working-diretory: discojs/discojs-web
5332
env:
5433
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
55-
56-
# publish the "@epfml/discojs-node" package based off the compiled code in
57-
# discojs/discojs-node/dist/
58-
discojs-node:
59-
needs: prepare-dependencies
60-
runs-on: ubuntu-latest
61-
defaults:
62-
run:
63-
working-directory: discojs/discojs-node/
64-
steps:
65-
- uses: actions/checkout@v3
66-
- uses: actions/setup-node@v3
67-
with:
68-
node-version: ${{ node_version }}
69-
registry-url: https://registry.npmjs.org
70-
cache: npm
71-
cache-dependency-path: discojs/package-lock.json
72-
- run: npm ci
73-
working-directory: discojs/
74-
- run: npm run build
34+
# publish @epfml/discojs-node
7535
- run: npm publish --access public
36+
working-diretory: discojs/discojs-node
7637
env:
7738
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

discojs/discojs-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@epfml/discojs-node",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"scripts": {

discojs/discojs-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@epfml/discojs",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"scripts": {

0 commit comments

Comments
 (0)