Skip to content

Commit

Permalink
fix: fix publishing to npm (#1577)
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros authored Aug 8, 2024
1 parent 46cdd79 commit 1889a7b
Show file tree
Hide file tree
Showing 5 changed files with 4,588 additions and 8,246 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/dhis2-verify-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 20.x

- uses: c-hive/gha-yarn-cache@v1
- run: |
yarn install --frozen-lockfile
NODE_OPTIONS=--openssl-legacy-provider yarn setup
yarn setup
- name: Build
run: yarn build
Expand All @@ -59,7 +59,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 20.x

Expand All @@ -80,7 +80,7 @@ jobs:
needs: [build]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 20.x

Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 20.x

Expand Down Expand Up @@ -175,7 +175,6 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: 'yarn'

- uses: actions/download-artifact@v2
with:
Expand All @@ -184,9 +183,10 @@ jobs:
- run: ./scripts/extract-artifact.sh

# ensure that d2-app-scripts is available
- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --frozen-lockfile

- uses: dhis2/action-semantic-release@master
- uses: dhis2/action-semantic-release@node20
with:
publish-npm: true
publish-github: true
Expand Down
1 change: 0 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"file-loader": "^6.2.0",
"prism-react-renderer": "^1.2.1",
"prop-types": "^15.7.2",
"react-docgen-props-table": "^1.0.3",
"url-loader": "^4.1.1"
},
"peerDependencies": {
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@badeball/cypress-cucumber-preprocessor": "^20.0.2",
"@cypress/webpack-preprocessor": "^6.0.1",
"@dhis2/app-runtime": "^3.9.0",
"@dhis2/cli-app-scripts": "^8.0.0",
"@dhis2/cli-app-scripts": "^11.7.0",
"@dhis2/cli-style": "10.4.2",
"@dhis2/cli-utils-docsite": "^3.1.2",
"@dhis2/cypress-commands": "^10.0.5",
Expand All @@ -81,7 +81,8 @@
"rimraf": "^3.0.2",
"wait-on": "^6.0.0"
},
"resolutions": {
"react": "16.13.1"
"overrides": {
"react": "$react",
"react-dom": "$react"
}
}
3 changes: 2 additions & 1 deletion storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"build": "EXTEND_ESLINT=true storybook build -c config -o ../dist/demo"
},
"peerDependencies": {
"styled-jsx": "^4"
"styled-jsx": "^4",
"typescript": "^4"
},
"dependencies": {
"@babel/plugin-proposal-class-properties": "^7.13.0",
Expand Down
Loading

0 comments on commit 1889a7b

Please sign in to comment.