Skip to content

Commit 926e723

Browse files
committed
fix(ci): fix failing ci
1 parent d89c463 commit 926e723

File tree

4 files changed

+44
-40
lines changed

4 files changed

+44
-40
lines changed
Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# @format
2-
31
name: Publish Latest Releases
42

53
on:
@@ -13,31 +11,29 @@ jobs:
1311
if: startsWith(github.ref, 'refs/tags/sgds/')
1412
runs-on: ubuntu-latest
1513
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-node@v3
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
1816
with:
19-
node-version: 14
17+
node-version: 20
2018
registry-url: 'https://registry.npmjs.org'
21-
- run: npm ci
2219
- run: npm run lib:install
2320
- run: npm run lib:build
24-
- run: cd lib/sgds
25-
- run: npm publish --tag latest --access public
21+
- run: npm publish ./lib/sgds --tag latest --access public
2622
env:
2723
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24+
2825
publish-sgds-x-family:
2926
if: startsWith(github.ref, 'refs/tags/sgds-x-family/')
3027
runs-on: ubuntu-latest
3128
steps:
32-
- uses: actions/checkout@v3
33-
- uses: actions/setup-node@v3
29+
- uses: actions/checkout@v4
30+
- uses: actions/setup-node@v4
3431
with:
35-
node-version: 14
32+
node-version: 20
3633
registry-url: 'https://registry.npmjs.org'
37-
- run: npm ci
3834
- run: npm run sgds-x-family:install
3935
- run: npm run sgds-x-family:build
4036
- run: cd lib/sgds-x-family
4137
- run: npm publish --tag latest --access public
4238
env:
43-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/publish-pr.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,36 +13,45 @@ jobs:
1313
if: startsWith(github.ref, 'refs/tags/sgds/')
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-node@v3
16+
- uses: actions/checkout@v4
17+
- name: Set Tag env
18+
run: echo "NPM_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-node@v4
1821
with:
19-
node-version: 14
22+
node-version: 20
2023
registry-url: 'https://registry.npmjs.org'
21-
- run: npm ci
22-
- run: npm run lib:install
24+
- run: npm run lib:install
2325
- run: npm run lib:build
24-
- run: cd lib/sgds
25-
- run: npm publish --tag alpha --access public
26+
- run: npm publish ./lib/sgds --tag alpha --access public
2627
if: contains(env.NPM_TAG, 'alpha')
27-
- run: npm publish --tag beta --access public
28+
env:
29+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
30+
- run: npm publish ./lib/sgds --tag beta --access public
2831
if: contains(env.NPM_TAG, 'beta')
2932
env:
3033
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
3135
publish-sgds-x-family:
3236
if: startsWith(github.ref, 'refs/tags/sgds-x-family/')
3337
runs-on: ubuntu-latest
3438
steps:
35-
- uses: actions/checkout@v3
36-
- uses: actions/setup-node@v3
39+
- uses: actions/checkout@v4
40+
- name: Set Tag env
41+
run: echo "NPM_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
42+
43+
- uses: actions/checkout@v4
44+
- uses: actions/setup-node@v4
3745
with:
38-
node-version: 14
46+
node-version: 20
3947
registry-url: 'https://registry.npmjs.org'
4048
- run: npm ci
41-
- run: npm run sgds-x-family:install
4249
- run: npm run sgds-x-family:build
4350
- run: cd lib/sgds-x-family
4451
- run: npm publish --tag alpha --access public
4552
if: contains(env.NPM_TAG, 'alpha')
53+
env:
54+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4655
- run: npm publish --tag beta --access public
4756
if: contains(env.NPM_TAG, 'beta')
4857
env:

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "@govtechsg/sgds",
3-
"version": "1.0.0",
4-
"description": "",
2+
"name": "sgds",
3+
"version": "0.0.0",
4+
"description": "SGDS styling libraries monorepo",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/govtechsg/sgds.git"
@@ -10,17 +10,17 @@
1010
"author": "Tey Liang Tai",
1111
"main": "",
1212
"scripts": {
13-
"prepare": "husky install",
14-
"portal:install": "cd portal && npm i && bundle install",
15-
"lib:install": "cd lib/sgds && npm i",
16-
"sgds-x-family:install": "cd lib/sgds-x-family && npm i",
17-
"install": "concurrently \"npm i\" \"npm run lib:install\" \"npm run portal:install\" \"npm run sgds-x-family:install\"",
18-
"lib:build": "cd lib/sgds && npm run build",
19-
"portal:build": "cd portal && npm run build",
20-
"build": "npm run lib:build && npm run portal:build",
21-
"sgds-x-family:build": "cd lib/sgds-x-family && npm run build",
22-
"portal:dev": "cd portal && npm run dev",
23-
"react-select:dev": "cd lib/sgds-x-family && npm run react-select:dev"
13+
"prepare": "husky install",
14+
"portal:install": "cd portal && npm i && bundle install",
15+
"lib:install": "cd lib/sgds && npm i",
16+
"sgds-x-family:install": "cd lib/sgds-x-family && npm i",
17+
"install": "concurrently \"npm run lib:install\" \"npm run portal:install\" \"npm run sgds-x-family:install\"",
18+
"lib:build": "cd lib/sgds && npm run build",
19+
"portal:build": "cd portal && npm run build",
20+
"build": "npm run lib:build && npm run portal:build",
21+
"sgds-x-family:build": "cd lib/sgds-x-family && npm run build",
22+
"portal:dev": "cd portal && npm run dev",
23+
"react-select:dev": "cd lib/sgds-x-family && npm run react-select:dev"
2424
},
2525
"devDependencies": {
2626
"@commitlint/cli": "^17.0.3",

0 commit comments

Comments
 (0)