-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Pin node version * pin npm version * pin npm
- Loading branch information
1 parent
80c6059
commit 5dbde1f
Showing
7 changed files
with
43 additions
and
30 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 |
---|---|---|
|
@@ -2,10 +2,9 @@ name: Release | |
|
||
on: | ||
push: | ||
branches: ["main"] | ||
branches: ['main'] | ||
|
||
jobs: | ||
|
||
preconditions: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
|
@@ -66,7 +65,7 @@ jobs: | |
id: buildx | ||
uses: docker/setup-buildx-action@v1 | ||
with: | ||
buildkitd-flags: "--debug" | ||
buildkitd-flags: '--debug' | ||
- name: Set up Helm | ||
uses: azure/setup-helm@v1 | ||
with: | ||
|
@@ -109,7 +108,9 @@ jobs: | |
- uses: actions/checkout@master | ||
- uses: actions/setup-node@master | ||
with: | ||
node-version: 14.x | ||
node-version: 16.x | ||
- name: Use npm v8 | ||
run: npm install -g npm@8 | ||
- name: Cache Node.js modules | ||
uses: actions/cache@v1 | ||
with: | ||
|
@@ -130,7 +131,9 @@ jobs: | |
- uses: actions/checkout@master | ||
- uses: actions/setup-node@master | ||
with: | ||
node-version: 14.x | ||
node-version: 16.x | ||
- name: Use npm v8 | ||
run: npm install -g npm@8 | ||
- name: Cache Node.js modules | ||
uses: actions/cache@v1 | ||
with: | ||
|
@@ -151,7 +154,9 @@ jobs: | |
- uses: actions/checkout@master | ||
- uses: actions/setup-node@master | ||
with: | ||
node-version: 14.x | ||
node-version: 16.x | ||
- name: Use npm v8 | ||
run: npm install -g npm@8 | ||
- name: Cache Node.js modules | ||
uses: actions/cache@v1 | ||
with: | ||
|
@@ -167,13 +172,13 @@ jobs: | |
- name: Sleep | ||
uses: kibertoad/[email protected] | ||
with: | ||
time: "30s" | ||
time: '30s' | ||
- name: Initialise DB | ||
run: npx knex migrate:latest --env test | ||
- name: Run tests | ||
run: npm run test | ||
check-version: | ||
name: "Check version" | ||
name: 'Check version' | ||
runs-on: ubuntu-latest | ||
outputs: | ||
is_new_version: ${{ steps.get_version.outputs.IS_NEW_VERSION }} | ||
|
@@ -197,7 +202,7 @@ jobs: | |
echo "Skipping release as current version has already been published" | ||
publish: | ||
name: "Publish package" | ||
name: 'Publish package' | ||
needs: [preconditions, helm-lint, helm-test, lint, dependency-check, tests, check-version] | ||
runs-on: ubuntu-latest | ||
if: ${{ needs.check-version.outputs.is_new_version == 'true' }} | ||
|
@@ -214,7 +219,7 @@ jobs: | |
id: buildx | ||
uses: docker/setup-buildx-action@v1 | ||
with: | ||
buildkitd-flags: "--debug" | ||
buildkitd-flags: '--debug' | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
|
@@ -252,7 +257,7 @@ jobs: | |
- name: Build release version | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
token: '${{ secrets.GITHUB_TOKEN }}' | ||
tag_name: ${{ needs.check-version.outputs.version }} | ||
prerelease: false | ||
name: ${{ needs.check-version.outputs.version }} | ||
|
@@ -268,11 +273,11 @@ jobs: | |
} | ||
catch (err) { | ||
if (err.status !== 422) throw err | ||
} | ||
} | ||
- name: Build release latest | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
token: '${{ secrets.GITHUB_TOKEN }}' | ||
tag_name: latest | ||
prerelease: false | ||
name: Latest ${{ needs.check-version.outputs.version }} | ||
|
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
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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