diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2021-12-19 02:49:05 +0530 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2021-12-19 02:49:05 +0530 |
commit | 12de79eadc17cecbb29a0b4c2b23cb78d95360ba (patch) | |
tree | 638019ce315b2b50cb761473295e7f743ebd5145 /.github/workflows/builds.yml | |
parent | Upgrade 'nodejs' to '16.13.1', 'pnpm' to '6.24.1' (diff) | |
download | ferdium-recipes-12de79eadc17cecbb29a0b4c2b23cb78d95360ba.tar.gz ferdium-recipes-12de79eadc17cecbb29a0b4c2b23cb78d95360ba.tar.zst ferdium-recipes-12de79eadc17cecbb29a0b4c2b23cb78d95360ba.zip |
Remove duplicate reference to node version for ease of maintenance
Diffstat (limited to '.github/workflows/builds.yml')
-rw-r--r-- | .github/workflows/builds.yml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml new file mode 100644 index 0000000..44c7cf4 --- /dev/null +++ b/.github/workflows/builds.yml | |||
@@ -0,0 +1,40 @@ | |||
1 | # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
3 | |||
4 | name: Ferdi Recipes Builds | ||
5 | |||
6 | on: | ||
7 | # Push to any tracked branches | ||
8 | push: | ||
9 | branches: [master] | ||
10 | # PRs only on master branch | ||
11 | pull_request: | ||
12 | branches: [master] | ||
13 | # Manual trigger from the UI | ||
14 | workflow_dispatch: | ||
15 | inputs: | ||
16 | message: | ||
17 | description: 'Message for build' | ||
18 | required: true | ||
19 | |||
20 | jobs: | ||
21 | build: | ||
22 | name: Ferdi Recipes Build | ||
23 | runs-on: ubuntu-latest | ||
24 | steps: | ||
25 | - name: Print latest commit | ||
26 | run: echo ${{ github.sha }} | ||
27 | - name: Set env vars | ||
28 | run: echo "PNPM_CACHE=$HOME/.pnpm-store" >> $GITHUB_ENV | ||
29 | - name: Checkout code | ||
30 | uses: actions/checkout@v2 | ||
31 | - name: Use Node.js specified in the '.nvmrc' file | ||
32 | uses: actions/setup-node@v2 | ||
33 | with: | ||
34 | node-version-file: '.nvmrc' | ||
35 | - name: Install pnpm | ||
36 | uses: pnpm/action-setup@v2.0.1 | ||
37 | with: | ||
38 | version: 6.24.1 | ||
39 | - name: Install node dependencies recursively | ||
40 | run: pnpm i && pnpm run package | ||