Skip to content

Commit

Permalink
Merge f9d31b5 into 5367f17
Browse files Browse the repository at this point in the history
  • Loading branch information
saihaj committed Jun 12, 2021
2 parents 5367f17 + f9d31b5 commit d559fc5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,33 @@
name: Continuous Deployment

on:
push:
branches:
- main
on: workflow_dispatch

jobs:
build-publish:
name: Build and Publish to NPM
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:
Expand Down Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d559fc5

Please sign in to comment.