Skip to content

Commit

Permalink
chore: update github actions (#1646)
Browse files Browse the repository at this point in the history
* chore: update github actions

* chore: update staging workflow
  • Loading branch information
MoumitaM authored Mar 18, 2024
1 parent a269da6 commit 7792d3c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ permissions:
contents: read # This is required for actions/checkout

env:
NODE_OPTIONS: "--no-warnings"
NODE_OPTIONS: '--no-warnings'

jobs:
deploy-tag:
name: Deploy to NPM
runs-on: [self-hosted, Linux, X64]
runs-on: ubuntu-latest # this runner should not be changed due to NPM publish restrictions
if: startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/main') || github.event.pull_request.merged == true

steps:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ permissions:
contents: read # This is required for actions/checkout

env:
NODE_OPTIONS: "--no-warnings"
NODE_OPTIONS: '--no-warnings'

jobs:
deploy-tag:
name: Deploy to staging environment
runs-on: [self-hosted, Linux, X64]
# Only run the workflow to be manually run for tags
# Only manually run the workflow for tags
# and PRs raised from release branches to main
if: startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/hotfix-release') || startsWith(github.ref, 'refs/heads/release')
if: startsWith(github.ref, 'refs/tags/v') || startsWith(github.head_ref, 'hotfix-release/') || startsWith(github.head_ref, 'release/')

steps:
- name: Install AWS cli
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- closed

env:
NODE_OPTIONS: "--no-warnings"
NODE_OPTIONS: '--no-warnings'

jobs:
release:
Expand All @@ -24,7 +24,7 @@ jobs:
BRANCH_NAME_REF: ${{ github.event.pull_request.head.ref }}
run: |
BRANCH_NAME="${BRANCH_NAME_REF}"
VERSION=${VERSION#hotfix-}
VERSION=${BRANCH_NAME#hotfix-}
VERSION=${VERSION#release/}
echo "release_version=$VERSION" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 7792d3c

Please sign in to comment.