Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
fix(workflow): fix publish config
Browse files Browse the repository at this point in the history
  • Loading branch information
Alvin committed May 10, 2023
1 parent 2f026c3 commit bcffb37
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 8 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@dsaidgovsg'
- run: npm install
- run: npm run build
- run: npm ci
- run: npx changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
auto-install-peers = true
always-auth = true
@dsaidgovsg:registry=https://npm.pkg.github.com
4 changes: 4 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"test": "turbo run test",
"test:watch": "turbo run test:watch"
"test:watch": "turbo run test:watch",
"prepare": "npm run build"
},
"devDependencies": {
"@babel/core": "^7.21.5",
Expand Down
6 changes: 5 additions & 1 deletion packages/chain-wrap-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@
"files": [
"dist"
],
"publishConfig": {
"@dsaidgovsg:registry": "https://npm.pkg.github.com"
},
"scripts": {
"build": "tsup ./index.jsx --format iife,cjs,esm --replaceNodeEnv",
"lint": "eslint \"**/*.@(js|jsx)\"",
"dev": "npm run build -- --watch",
"test": "jest --coverage",
"test:watch": "jest --watch"
"test:watch": "jest --watch",
"prepare": "npm run build"
},
"dependencies": {
"deepmerge": "4.3.1"
Expand Down
6 changes: 5 additions & 1 deletion packages/swagger-ui-custom-layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@
"files": [
"dist"
],
"publishConfig": {
"@dsaidgovsg:registry": "https://npm.pkg.github.com"
},
"scripts": {
"build": "tsup ./index.js --format iife,cjs,esm --replaceNodeEnv",
"lint": "eslint \"**/*.@(js|jsx)\"",
"dev": "npm run build -- --watch"
"dev": "npm run build -- --watch",
"prepare": "npm run build"
},
"peerDependencies": {
"react": "18.2.0",
Expand Down
6 changes: 5 additions & 1 deletion packages/swagger-ui-plugin-otp-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@
"files": [
"dist"
],
"publishConfig": {
"@dsaidgovsg:registry": "https://npm.pkg.github.com"
},
"scripts": {
"build": "tsup ./index.jsx --format iife,cjs,esm --replaceNodeEnv",
"lint": "eslint \"**/*.@(js|jsx)\"",
"dev": "npm run build -- --watch",
"test": "jest --coverage",
"test:watch": "jest --watch"
"test:watch": "jest --watch",
"prepare": "npm run build"
},
"peerDependencies": {
"react": "18.2.0",
Expand Down
6 changes: 5 additions & 1 deletion packages/swagger-ui-plugin-saml-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@
"files": [
"dist"
],
"publishConfig": {
"@dsaidgovsg:registry": "https://npm.pkg.github.com"
},
"scripts": {
"build": "tsup ./index.js --format iife,cjs,esm --replaceNodeEnv",
"lint": "eslint \"**/*.@(js|jsx)\"",
"dev": "npm run build -- --watch",
"test": "jest --coverage",
"test:watch": "jest --watch"
"test:watch": "jest --watch",
"prepare": "npm run build"
},
"peerDependencies": {
"react": "18.2.0",
Expand Down

0 comments on commit bcffb37

Please sign in to comment.