-
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.
n
- Loading branch information
Showing
6 changed files
with
114 additions
and
66 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Build, Test, List | ||
|
||
concurrency: deployment | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
Setup-Environment: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [ 18.x ] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
Build: | ||
runs-on: ubuntu-latest | ||
needs: [Setup-Environment] | ||
steps: | ||
- run: yarn build | ||
|
||
Test: | ||
runs-on: ubuntu-latest | ||
needs: [ Setup-Environment ] | ||
steps: | ||
- run: yarn test | ||
|
||
Lint: | ||
runs-on: ubuntu-latest | ||
needs: [ Setup-Environment ] | ||
steps: | ||
- run: | | ||
yarn format:check | ||
yarn 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 |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
branches: [main] | ||
|
||
jobs: | ||
build: | ||
check-commit-message: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
name: Run Release Please | ||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
environment: deployment | ||
strategy: | ||
matrix: | ||
node-version: [ 18.x ] | ||
steps: | ||
- uses: google-github-actions/release-please-action@v2 | ||
id: release | ||
with: | ||
command: manifest | ||
token: ${{secrets.GITHUB_TOKEN}} | ||
default-branch: main | ||
monorepo-tags: true | ||
|
||
|
||
Setup-Environment: | ||
runs-on: ubuntu-latest | ||
if: ${{ steps.release.outputs.releases_created }} | ||
strategy: | ||
matrix: | ||
node-version: [ 18.x ] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
Build: | ||
runs-on: ubuntu-latest | ||
if: ${{ steps.release.outputs.releases_created }} | ||
needs: [ Setup-Environment ] | ||
steps: | ||
- run: yarn build | ||
|
||
npm-publish: | ||
runs-on: ubuntu-latest | ||
if: ${{ steps.release.outputs.releases_created }} | ||
needs: [Build] | ||
strategy: | ||
matrix: | ||
node-version: [ 18.x ] | ||
steps: | ||
- name: Publish to NPM | ||
if: ${{ steps.release.outputs.releases_created }} | ||
env: | ||
NPM_TOKEN: ${{secrets.NPM_TOKEN}} | ||
run: | | ||
echo "@spotify-confidence:registry=https://registry.npmjs.org/" > .npmrc | ||
echo "registry=https://registry.npmjs.org/" >> .npmrc | ||
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> .npmrc | ||
yarn publish-if-missing |
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