Skip to content

Commit

Permalink
pr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielKag committed Jan 28, 2025
1 parent 898c329 commit 5c0e0ca
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 43 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,23 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 14
- run: yarn
- run: yarn build
- run: yarn test
node-version: 20
- name: Install dependencies
run: yarn install

- name: Build package
run: |
cd packages/repluggable
yarn build
- name: Run tests
run: |
cd packages/repluggable
yarn test
- name: Bump version
run: |
cd packages/repluggable
git reset --hard
echo yarn version "0.0.0-pr$PR_ID.$BUILD_NUMBER"
yarn version "0.0.0-pr$PR_ID.$BUILD_NUMBER"
Expand All @@ -30,6 +40,7 @@ jobs:

- name: npm publish
run: |
cd packages/repluggable
echo PR package tag is [pr$PR_ID.$BUILD_NUMBER]
npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN
npm publish --tag "pr$PR_ID.$BUILD_NUMBER"
Expand Down
81 changes: 42 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,43 @@
{
"name": "repluggable-monorepo",
"version": "1.0.0",
"license": "MIT",
"description": "Allows composition of a React-with-Redux application entirely from a list of pluggable packages",
"author": {
"name": "Wix.com",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "https://github.com/wix/repluggable"
},
"scripts": {
"start": "webpack-dev-server --hot --config webpack.local.config.js",
"build": "rm -rf dist && yarn build-cjs && yarn build-es && yarn build-bundle-dev && yarn build-bundle-prod",
"build-cjs": "tsc --outDir dist --module commonjs",
"build-es": "tsc --outDir dist/es --module esNext",
"build-bundle-dev": "webpack --config webpack.dev.config.js",
"build-bundle-prod": "webpack --config webpack.prod.config.js",
"test": "jest --coverage",
"posttest": "tslint --project .",
"lintfix": "tslint --fix --project ."
},
"resolutions": {
"node-forge": "^1.0.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"(src|test|testKit)/**/*.{ts,tsx}": [
"tslint --project . --fix"
]
},
"packageManager": "[email protected]"
}

"name": "repluggable-monorepo",
"version": "1.0.0",
"license": "MIT",
"description": "Allows composition of a React-with-Redux application entirely from a list of pluggable packages",
"author": {
"name": "Wix.com",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "https://github.com/wix/repluggable"
},
"workspaces": [
"packages/*"
],
"scripts": {
"start": "yarn workspace repluggable start",
"build": "yarn workspace repluggable build",
"build-cjs": "yarn workspace repluggable build-cjs",
"build-es": "yarn workspace repluggable build-es",
"build-bundle-dev": "yarn workspace repluggable build-bundle-dev",
"build-bundle-prod": "yarn workspace repluggable build-bundle-prod",
"test": "yarn workspace repluggable test",
"posttest": "yarn workspace repluggable posttest",
"lintfix": "yarn workspace repluggable lintfix"
},
"resolutions": {
"node-forge": "^1.0.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"(src|test|testKit)/**/*.{ts,tsx}": [
"tslint --project . --fix"
]
},
"packageManager": "[email protected]"
}

0 comments on commit 5c0e0ca

Please sign in to comment.