Skip to content

Commit

Permalink
Add npm script for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
onigoetz committed Aug 11, 2024
1 parent d096de0 commit d999ebc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
- run: yarn install
- run: yarn build
- run: yarn test
- run: yarn workspaces foreach -W --no-private npm publish --access public
- run: yarn workspaces foreach -A --no-private run publish_to_npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion packages/i18n-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"scripts": {
"build": "parcel build",
"format": "biome format index.ts",
"check": "biome check index.ts"
"check": "biome check index.ts",
"publish_to_npm": "npm publish"
}
}
3 changes: 2 additions & 1 deletion packages/intl-formatters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"test": "NODE_ICU_DATA=../../node_modules/full-icu && node --loader=ts-node/esm test.ts",
"test:ci": "NODE_ICU_DATA=../../node_modules/full-icu && c8 -r lcov -r text node --loader=ts-node/esm test.ts",
"format": "biome format src",
"check": "biome check src"
"check": "biome check src",
"publish_to_npm": "npm publish"
}
}
3 changes: 2 additions & 1 deletion packages/make-plural/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"test": "node --loader=ts-node/esm test.ts",
"test:ci": "c8 -r lcov -r text node --loader=ts-node/esm test.ts",
"format": "biome format src",
"check": "biome check src"
"check": "biome check src",
"publish_to_npm": "npm publish"
}
}
3 changes: 2 additions & 1 deletion packages/messageformat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"test": "node --loader=ts-node/esm test.ts",
"test:ci": "c8 -r lcov -r text node --loader=ts-node/esm test.ts",
"format": "biome format src",
"check": "biome check src"
"check": "biome check src",
"publish_to_npm": "npm publish"
}
}

0 comments on commit d999ebc

Please sign in to comment.