Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow Updates #72

Merged
merged 4 commits into from
Nov 19, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions .github/workflows/publish-prod-api.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
name: Publish API to Production

# Triggers the workflow on merge in main branch
on:
pull_request:
branches:
- main
types: [closed]

jobs:
publish_prod_api:
# run only if pull request is merged into main branch
if: ${{ github.event.pull_request.merged }} && !contains(github.event.head_commit.message, 'ci skip')
if: "!contains(github.event.head_commit.message, 'ci skip')"
# The type of runner that the job will run on
runs-on: ubuntu-latest
timeout-minutes: 80
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/publish-prod-embed.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
name: Publish Embed to Production

# Triggers the workflow on merge in main branch
on:
pull_request:
branches:
- main
types: [closed]

jobs:
publish_prod_embed:
# run only if pull request is merged into main branch
if: ${{ github.event.pull_request.merged }} && !contains(github.event.head_commit.message, 'ci skip')
if: "!contains(github.event.head_commit.message, 'ci skip')"
# The type of runner that the job will run on
runs-on: ubuntu-latest
timeout-minutes: 80
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/publish-prod-queue-manager.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
name: Publish Queue Manager to Production

# Triggers the workflow on merge in main branch
on:
pull_request:
branches:
- main
types: [closed]

jobs:
publish_prod_queue-manager:
# run only if pull request is merged into main branch
if: ${{ github.event.pull_request.merged }} && !contains(github.event.head_commit.message, 'ci skip')
if: "!contains(github.event.head_commit.message, 'ci skip')"
# The type of runner that the job will run on
runs-on: ubuntu-latest
timeout-minutes: 80
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/publish-prod-react.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
name: Publish React to NPM Registry

# Triggers the workflow on merge in main branch
on:
pull_request:
branches:
- main
types: [closed]

jobs:
publish_prod_react:
# run only if pull request is merged into main branch
if: ${{ github.event.pull_request.merged }} && !contains(github.event.head_commit.message, 'ci skip')
if: "!contains(github.event.head_commit.message, 'ci skip')"
# The type of runner that the job will run on
runs-on: ubuntu-latest
timeout-minutes: 80
Expand Down Expand Up @@ -42,8 +34,8 @@ jobs:
version: 7.9.4
run_install: true

- name: Publish
uses: JS-DevTools/npm-publish@v1
- name: Publish package to NPM 📦
working-directory: apps/widget
run: npm publish --access public
with:
token: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
10 changes: 1 addition & 9 deletions .github/workflows/publish-prod-widget.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
name: Publish Widget to Production

# Triggers the workflow on merge in main branch
on:
pull_request:
branches:
- main
types: [closed]

jobs:
publish_prod_widget:
# run only if pull request is merged into main branch
if: ${{ github.event.pull_request.merged }} && !contains(github.event.head_commit.message, 'ci skip')
if: "!contains(github.event.head_commit.message, 'ci skip')"
# The type of runner that the job will run on
runs-on: ubuntu-latest
timeout-minutes: 80
Expand Down