From 12de79eadc17cecbb29a0b4c2b23cb78d95360ba Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 19 Dec 2021 02:49:05 +0530 Subject: Remove duplicate reference to node version for ease of maintenance --- .github/workflows/builds.yml | 40 ++++++++++++++++++++++++++++++++++++++ .github/workflows/ferdi-builds.yml | 40 -------------------------------------- 2 files changed, 40 insertions(+), 40 deletions(-) create mode 100644 .github/workflows/builds.yml delete mode 100644 .github/workflows/ferdi-builds.yml (limited to '.github') 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 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Ferdi Recipes Builds + +on: + # Push to any tracked branches + push: + branches: [master] + # PRs only on master branch + pull_request: + branches: [master] + # Manual trigger from the UI + workflow_dispatch: + inputs: + message: + description: 'Message for build' + required: true + +jobs: + build: + name: Ferdi Recipes Build + runs-on: ubuntu-latest + steps: + - name: Print latest commit + run: echo ${{ github.sha }} + - name: Set env vars + run: echo "PNPM_CACHE=$HOME/.pnpm-store" >> $GITHUB_ENV + - name: Checkout code + uses: actions/checkout@v2 + - name: Use Node.js specified in the '.nvmrc' file + uses: actions/setup-node@v2 + with: + node-version-file: '.nvmrc' + - name: Install pnpm + uses: pnpm/action-setup@v2.0.1 + with: + version: 6.24.1 + - name: Install node dependencies recursively + run: pnpm i && pnpm run package diff --git a/.github/workflows/ferdi-builds.yml b/.github/workflows/ferdi-builds.yml deleted file mode 100644 index 0572ce4..0000000 --- a/.github/workflows/ferdi-builds.yml +++ /dev/null @@ -1,40 +0,0 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Ferdi Recipes Builds - -on: - # Push to any tracked branches - push: - branches: [master] - # PRs only on master branch - pull_request: - branches: [master] - # Manual trigger from the UI - workflow_dispatch: - inputs: - message: - description: 'Message for build' - required: true - -jobs: - build: - name: Ferdi Recipes Build - runs-on: ubuntu-latest - steps: - - name: Print latest commit - run: echo ${{ github.sha }} - - name: Set env vars - run: echo "PNPM_CACHE=$HOME/.pnpm-store" >> $GITHUB_ENV - - name: Checkout code - uses: actions/checkout@v2 - - name: Use Node.js 16.13.1 - uses: actions/setup-node@v2 - with: - node-version: 16.13.1 - - name: Install pnpm - uses: pnpm/action-setup@v2.0.1 - with: - version: 6.24.1 - - name: Install node dependencies recursively - run: pnpm i && pnpm run package -- cgit v1.2.3-54-g00ecf