Skip to content

Commit

Permalink
Fix deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
lhansford committed Aug 30, 2024
1 parent 5f1ee42 commit 312698c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 24 deletions.
26 changes: 5 additions & 21 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,15 @@ on:
branches:
- main

jobs:
publish-base:
runs-on: warp-ubuntu-latest-x64-2x
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c # v3.1.1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/base
access: public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

publish-react:
jobs:
publish:
runs-on: warp-ubuntu-latest-x64-2x
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c # v3.1.1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/react
access: public
- run: yarn publish
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@fishbrain/eslint-config-monorepo",
"private": true,
"description": "ESLint configs for Fishbrain projects",
"version": "6.0.1",
"version": "6.0.2",
"workspaces": [
"packages/*"
],
Expand All @@ -16,6 +17,7 @@
},
"homepage": "https://github.com/fishbrain/eslint-config-fishbrain#readme",
"scripts": {
"publish": "yarn workspaces foreach -A --include \"packages/**\" npm publish --access public",
"test": "yarn workspaces foreach --all run test"
},
"prettier": {
Expand Down
2 changes: 1 addition & 1 deletion packages/base/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@fishbrain/eslint-config-base",
"packageManager": "yarn@4.4.1",
"version": "6.0.1",
"version": "6.0.2",
"type": "module",
"exports": "./index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@fishbrain/eslint-config-react",
"packageManager": "yarn@4.4.1",
"version": "6.0.1",
"version": "6.0.2",
"type": "module",
"exports": "./index.js",
"scripts": {
Expand Down

0 comments on commit 312698c

Please sign in to comment.