From 1828b4810ca9912a11c079b3aeaaf00f984941d8 Mon Sep 17 00:00:00 2001 From: Saihajpreet Singh Date: Sat, 12 Jun 2021 18:37:38 -0400 Subject: [PATCH 1/2] ci: use shabados actions release --- .github/workflows/deploy.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e8ce9de..a2f002e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,9 +1,6 @@ name: Continuous Deployment -on: - push: - branches: - - main +on: workflow_dispatch jobs: build-publish: @@ -11,17 +8,26 @@ jobs: runs-on: ubuntu-latest steps: + - name: Setup ShabadOS Bot + uses: shabados/actions/setup-git-identity@release/v1 + with: + user: Shabad OS Bot + email: team@shabados.com + - name: Checkout uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Use Node.js 12.x + - name: Use Node.js 14.x uses: actions/setup-node@v1 with: - node-version: 12.x + node-version: 14.x registry-url: "https://registry.npmjs.org" + - name: Bump version + uses: shabados/actions/bump-version@release/v1 + - name: Cache Node.js modules uses: actions/cache@v1 with: @@ -51,3 +57,9 @@ jobs: npm run release env: NODE_AUTH_TOKEN: ${{ secrets.NPM_BOT_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }} + + - name: Release GH release + uses: shabados/actions/publish-github@release/v1 + with: + github_token: ${{ secrets.GH_BOT_TOKEN }} From f9d31b5f03375abb964f5a4784b68578db2c6dcf Mon Sep 17 00:00:00 2001 From: Saihajpreet Singh Date: Sat, 12 Jun 2021 18:38:29 -0400 Subject: [PATCH 2/2] ci: use ci flag for release-it cherry-pick from https://github.com/shabados/gurmukhi-utils/commit/a7f791f7f387a2aba20199cfff4016bb186bf046#diff-8bc94a3006768345d17c827c0bb5840e6e4daee6de1c2b1ea672f53f162d171dR14 --- release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.sh b/release.sh index 592e6f1..c3c512c 100755 --- a/release.sh +++ b/release.sh @@ -11,7 +11,7 @@ patch_re=\#Patch echo ${log_messages} -args="-n --npm.access=public --github.release --no-git.requireCleanWorkingDir --npm.skipChecks" +args="--ci --github.release --no-git.requireCleanWorkingDir --npm.skipChecks" if [[ ${log_messages} =~ ${major_re} ]]; then echo "Major Release"