update engine-publish
This commit is contained in:
parent
abdcd7354a
commit
c82c1b978f
3 changed files with 696 additions and 947 deletions
12
.github/workflows/engine-publish.yml
vendored
12
.github/workflows/engine-publish.yml
vendored
|
|
@ -29,9 +29,15 @@ jobs:
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
- run: git config --global user.name github-actions
|
- run: git config --global user.name github-actions
|
||||||
- run: git config --global user.email bot@github.com
|
- run: git config --global user.email bot@github.com
|
||||||
- run: yarn config set version-git-message "Engine v%s"
|
# - run: yarn config set version-git-message "Engine v%s"
|
||||||
- run: yarn version --${{ github.event.inputs.newversion }}
|
# - run: yarn version --${{ github.event.inputs.newversion }}
|
||||||
- run: sed -i 's:powergrid-engine:@boardgamers/powergrid-engine:' package.json
|
- run: |
|
||||||
|
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
||||||
|
BUMPED_VERSION=$(node -p "require('semver').inc('$PACKAGE_VERSION', '${{ github.event.inputs.newversion }}')")
|
||||||
|
# Update package.json with the new version
|
||||||
|
node -e "const fs = require('fs'); const package = JSON.parse(fs.readFileSync('./package.json')); package.version = '$BUMPED_VERSION'; fs.writeFileSync('./package.json', JSON.stringify(package, null, '\t') + '\n');"
|
||||||
|
git add .
|
||||||
|
git commit -m "🔖 powergrid-engine $BUMPED_VERSION"
|
||||||
- run: pnpm publish --access public --no-git-checks .
|
- run: pnpm publish --access public --no-git-checks .
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
"lint-staged": "^10.5.4",
|
"lint-staged": "^10.5.4",
|
||||||
"prettier": "^2.2.1",
|
"prettier": "^2.2.1",
|
||||||
"prettier-plugin-organize-imports": "^1.1.1",
|
"prettier-plugin-organize-imports": "^1.1.1",
|
||||||
|
"semver": "^7.7.2",
|
||||||
"typescript": "^4.1.5"
|
"typescript": "^4.1.5"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
|
|
|
||||||
1630
pnpm-lock.yaml
generated
1630
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue