-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix/no-error-on-default-props-match-prop-t…
…ypes
- Loading branch information
Showing
5 changed files
with
1,255 additions
and
1,372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,35 @@ | ||
name: Lint, test and build | ||
on: push | ||
|
||
env: | ||
# Vault settings | ||
VAULT_ADDR: https://vault-eyzrjbz27a-ew.a.run.app/ | ||
# To get the role id, change to the terraform production environment directory, and run: | ||
# terraform state pull | jq '.resources[] | select(.type=="vault_approle_auth_backend_role" and .name=="github").instances[].attributes.role_id' | ||
VAULT_ROLE_ID: 572856f8-3509-d6f8-7369-11468e595488 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
CLOUDSMITH_TOKEN: ${{ secrets.CLOUDSMITH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Npm cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('**/package.json') }} | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.13.1 | ||
- run: npm install | ||
- run: npm run build | ||
- run: npm run lint | ||
- name: Get common secrets | ||
uses: hashicorp/[email protected] | ||
id: secrets | ||
with: | ||
url: ${{ env.VAULT_ADDR }} | ||
method: approle | ||
roleId: ${{ env.VAULT_ROLE_ID }} | ||
secretId: ${{ secrets.VAULT_SECRET_ID }} | ||
secrets: secret/data/systems/common/npm token | NPM_TOKEN | ||
- uses: actions/checkout@v2 | ||
- name: Npm cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('**/package-lock.json') }} | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.13.1 | ||
- run: npm ci | ||
- run: npm run build | ||
- run: npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,32 +4,46 @@ on: | |
types: | ||
- published | ||
|
||
env: | ||
# Vault settings | ||
VAULT_ADDR: https://vault-eyzrjbz27a-ew.a.run.app/ | ||
# To get the role id, change to the terraform production environment directory, and run: | ||
# terraform state pull | jq '.resources[] | select(.type=="vault_approle_auth_backend_role" and .name=="github").instances[].attributes.role_id' | ||
VAULT_ROLE_ID: 572856f8-3509-d6f8-7369-11468e595488 | ||
|
||
jobs: | ||
publish: | ||
name: Publish beta version | ||
if: contains(github.ref, 'beta') | ||
runs-on: ubuntu-latest | ||
env: | ||
CLOUDSMITH_TOKEN: ${{ secrets.CLOUDSMITH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Npm cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('**/package.json') }} | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.13.1 | ||
- run: npm install | ||
- run: npm publish --tag beta | ||
- uses: 8398a7/action-slack@v3 | ||
with: | ||
status: ${{ job.status }} | ||
author_name: Stardust - Deploy | ||
fields: repo,commit,message,author | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
SLACK_USERNAME: Stardust | ||
if: failure() | ||
- name: Get common secrets | ||
uses: hashicorp/[email protected] | ||
id: secrets | ||
with: | ||
url: ${{ env.VAULT_ADDR }} | ||
method: approle | ||
roleId: ${{ env.VAULT_ROLE_ID }} | ||
secretId: ${{ secrets.VAULT_SECRET_ID }} | ||
secrets: | | ||
secret/data/systems/common/npm token | NPM_TOKEN; | ||
secret/data/systems/common/slack webhook | SLACK_WEBHOOK_URL | ||
- uses: actions/checkout@v2 | ||
- name: Npm cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('**/package-lock.json') }} | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.13.1 | ||
- run: npm ci | ||
- run: npm publish --tag beta | ||
- uses: 8398a7/action-slack@v3 | ||
with: | ||
status: ${{ job.status }} | ||
author_name: Stardust - Deploy | ||
fields: repo,commit,message,author | ||
env: | ||
SLACK_USERNAME: Stardust | ||
if: failure() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,32 +4,46 @@ on: | |
types: | ||
- published | ||
|
||
env: | ||
# Vault settings | ||
VAULT_ADDR: https://vault-eyzrjbz27a-ew.a.run.app/ | ||
# To get the role id, change to the terraform production environment directory, and run: | ||
# terraform state pull | jq '.resources[] | select(.type=="vault_approle_auth_backend_role" and .name=="github").instances[].attributes.role_id' | ||
VAULT_ROLE_ID: 572856f8-3509-d6f8-7369-11468e595488 | ||
|
||
jobs: | ||
publish: | ||
name: Publish regular version | ||
if: "!contains(github.ref, 'beta')" | ||
runs-on: ubuntu-latest | ||
env: | ||
CLOUDSMITH_TOKEN: ${{ secrets.CLOUDSMITH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Npm cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('**/package.json') }} | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.13.1 | ||
- run: npm install | ||
- run: npm publish | ||
- uses: 8398a7/action-slack@v3 | ||
with: | ||
status: ${{ job.status }} | ||
author_name: Stardust - Deploy | ||
fields: repo,commit,message,author | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
SLACK_USERNAME: Stardust | ||
if: failure() | ||
- name: Get common secrets | ||
uses: hashicorp/[email protected] | ||
id: secrets | ||
with: | ||
url: ${{ env.VAULT_ADDR }} | ||
method: approle | ||
roleId: ${{ env.VAULT_ROLE_ID }} | ||
secretId: ${{ secrets.VAULT_SECRET_ID }} | ||
secrets: | | ||
secret/data/systems/common/npm token | NPM_TOKEN; | ||
secret/data/systems/common/slack webhook | SLACK_WEBHOOK_URL | ||
- uses: actions/checkout@v2 | ||
- name: Npm cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('**/package-lock.json') }} | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.13.1 | ||
- run: npm ci | ||
- run: npm publish | ||
- uses: 8398a7/action-slack@v3 | ||
with: | ||
status: ${{ job.status }} | ||
author_name: Stardust - Deploy | ||
fields: repo,commit,message,author | ||
env: | ||
SLACK_USERNAME: Stardust | ||
if: failure() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.