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