Update workflows with linter suggestions (#1174)
This commit is contained in:
parent
ca00fda023
commit
9832deb20c
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
name: Build
|
||||
|
||||
on:
|
||||
|
@ -274,9 +275,8 @@ jobs:
|
|||
- name: Checkout repo
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
|
||||
|
||||
- name: npm install
|
||||
- name: NPM install
|
||||
run: npm install
|
||||
|
||||
- name: npm build
|
||||
- name: NPM build
|
||||
run: npm run build:cloud
|
||||
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
---
|
||||
name: Crowdin Sync
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs: {}
|
||||
#schedule:
|
||||
# - cron: '0 0 * * *'
|
||||
# schedule:
|
||||
# - cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
crowdin-sync:
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
|
@ -40,7 +41,7 @@ jobs:
|
|||
with:
|
||||
ref: rc
|
||||
|
||||
- name: setup git config
|
||||
- name: Setup git config
|
||||
run: |
|
||||
git config user.name = "GitHub Action Bot"
|
||||
git config user.email = "<>"
|
||||
|
@ -70,4 +71,3 @@ jobs:
|
|||
VERSION: ${{ steps.release-version.outputs.version }}
|
||||
PR_BRANCH: deploy-${{ steps.release-version.outputs.version }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
name: QA Deploy
|
||||
|
||||
on:
|
||||
|
@ -19,7 +20,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
|
||||
- name: Setup
|
||||
run:
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
name: Release
|
||||
|
||||
on:
|
||||
|
@ -9,6 +10,7 @@ on:
|
|||
|
||||
jobs:
|
||||
setup:
|
||||
name: Setup
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
release_upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
|
@ -62,10 +64,11 @@ jobs:
|
|||
prerelease: false
|
||||
|
||||
ubuntu:
|
||||
name: Ubuntu
|
||||
runs-on: ubuntu-latest
|
||||
needs: setup
|
||||
env:
|
||||
RELEASE_VERSION: ${{ needs.setup.outputs.release_version }}
|
||||
_RELEASE_VERSION: ${{ needs.setup.outputs.release_version }}
|
||||
steps:
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea
|
||||
|
@ -136,7 +139,7 @@ jobs:
|
|||
docker build -t bitwarden/web .
|
||||
|
||||
- name: Tag version
|
||||
run: docker tag bitwarden/web bitwarden/web:$RELEASE_VERSION
|
||||
run: docker tag bitwarden/web bitwarden/web:$_RELEASE_VERSION
|
||||
|
||||
- name: List Docker images
|
||||
run: docker images
|
||||
|
@ -148,7 +151,7 @@ jobs:
|
|||
DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE: ${{ steps.retrieve-secrets.outputs.dct-delegate-2-repo-passphrase }}
|
||||
|
||||
- name: Push version images
|
||||
run: docker push bitwarden/web:$RELEASE_VERSION
|
||||
run: docker push bitwarden/web:$_RELEASE_VERSION
|
||||
env:
|
||||
DOCKER_CONTENT_TRUST: 1
|
||||
DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE: ${{ steps.retrieve-secrets.outputs.dct-delegate-2-repo-passphrase }}
|
||||
|
|
Loading…
Reference in New Issue