Compare commits

...

4 Commits

Author SHA1 Message Date
WWebJS Bot
bd4df4cf75 1.18.0-alpha.1 2022-08-15 07:54:39 +00:00
Pedro S. Lopez
7fe3574730 fix(release): try setting PAT to push to main 2022-08-15 03:53:57 -04:00
Pedro Lopez
09a81d0e1e v1.18.0-alpha.0 2022-08-15 03:47:51 -04:00
Pedro S. Lopez
c09a22c533 fix(publish): exit if pushing to github failed 2022-08-15 03:42:06 -04:00
3 changed files with 5 additions and 3 deletions

View File

@@ -14,6 +14,8 @@ jobs:
if: ${{ github.repository == 'pedroslopez/whatsapp-web.js' }} if: ${{ github.repository == 'pedroslopez/whatsapp-web.js' }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
- run: git config --global user.email "hello@wwebjs.dev" - run: git config --global user.email "hello@wwebjs.dev"
- run: git config --global user.name "WWebJS Bot" - run: git config --global user.name "WWebJS Bot"
- name: Bump version and publish to NPM - name: Bump version and publish to NPM

View File

@@ -1,6 +1,6 @@
{ {
"name": "whatsapp-web.js", "name": "whatsapp-web.js",
"version": "1.17.1", "version": "1.18.0-alpha.1",
"description": "Library for interacting with the WhatsApp Web API ", "description": "Library for interacting with the WhatsApp Web API ",
"main": "./index.js", "main": "./index.js",
"typings": "./index.d.ts", "typings": "./index.d.ts",

View File

@@ -57,7 +57,7 @@ echo "-----> BUMP VERSION"
echo "" echo ""
npm version $VERSION_ARGS || exit 1 npm version $VERSION_ARGS || exit 1
git push && git push --tags git push && git push --tags || exit 1
NEW_VERSION=`cat package.json | jq -r .version` NEW_VERSION=`cat package.json | jq -r .version`
echo "New Version: $NEW_VERSION" echo "New Version: $NEW_VERSION"