diff options
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/ferdi-builds.yml | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/.github/workflows/ferdi-builds.yml b/.github/workflows/ferdi-builds.yml index 94d09d0..b6bd703 100644 --- a/.github/workflows/ferdi-builds.yml +++ b/.github/workflows/ferdi-builds.yml | |||
@@ -2,11 +2,11 @@ | |||
2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | 2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions |
3 | 3 | ||
4 | # Note: This workflow requires some secrets setup, and set on this repo with the names: | 4 | # Note: This workflow requires some secrets setup, and set on this repo with the names: |
5 | # 'FERDI_PUBLISH_TOKEN' (A GitHub Personal Access Token with appropriate permissions - for publishing the built artifacts) | 5 | # 'FERDI_PUBLISH_TOKEN' (A GitHub Personal Access Token with appropriate permissions - for publishing the built artifacts) |
6 | # 'APPLEID' (The username of your Apple developer account - for notarizing the mac artifacts) | 6 | # 'APPLEID' (The username of your Apple developer account - for notarizing the mac artifacts) |
7 | # 'APPLEID_PASSWORD' (An app-specific password - for notarizing the mac artifacts) | 7 | # 'APPLEID_PASSWORD' (An app-specific password - for notarizing the mac artifacts) |
8 | # 'CSC_LINK' (The HTTPS link or local path to certificate - for code signing of mac and windows artifacts) | 8 | # 'CSC_LINK' (The HTTPS link or local path to certificate - for code signing of mac and windows artifacts) |
9 | # 'CSC_KEY_PASSWORD' (The password to decrypt the certificate given in CSC_LINK - for code signing of mac and windows artifacts) | 9 | # 'CSC_KEY_PASSWORD' (The password to decrypt the certificate given in CSC_LINK - for code signing of mac and windows artifacts) |
10 | 10 | ||
11 | name: Ferdi Recipes Builds | 11 | name: Ferdi Recipes Builds |
12 | 12 | ||
@@ -32,7 +32,7 @@ jobs: | |||
32 | - name: Print latest commit | 32 | - name: Print latest commit |
33 | run: echo ${{ github.sha }} | 33 | run: echo ${{ github.sha }} |
34 | - name: Set env vars | 34 | - name: Set env vars |
35 | run: echo "NPM_CACHE=$HOME/.npm" >> $GITHUB_ENV | 35 | run: echo "PNPM_CACHE=$HOME/.pnpm-store" >> $GITHUB_ENV |
36 | - name: Checkout code | 36 | - name: Checkout code |
37 | uses: actions/checkout@v2 | 37 | uses: actions/checkout@v2 |
38 | - name: Cache node modules | 38 | - name: Cache node modules |
@@ -40,8 +40,8 @@ jobs: | |||
40 | env: | 40 | env: |
41 | cache-name: cache-node-modules | 41 | cache-name: cache-node-modules |
42 | with: | 42 | with: |
43 | path: ${{ env.NPM_CACHE }} | 43 | path: ${{ env.PNPM_CACHE }} |
44 | key: build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | 44 | key: build-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }} |
45 | restore-keys: | | 45 | restore-keys: | |
46 | build-${{ env.cache-name }}- | 46 | build-${{ env.cache-name }}- |
47 | build- | 47 | build- |
@@ -49,5 +49,10 @@ jobs: | |||
49 | uses: actions/setup-node@v2 | 49 | uses: actions/setup-node@v2 |
50 | with: | 50 | with: |
51 | node-version: 14.17.6 | 51 | node-version: 14.17.6 |
52 | - name: Install pnpm | ||
53 | uses: pnpm/action-setup@v2.0.1 | ||
54 | with: | ||
55 | version: 6.14.2 | ||
56 | run_install: true | ||
52 | - name: Install node dependencies recursively | 57 | - name: Install node dependencies recursively |
53 | run: npm i && npm run package | 58 | run: pnpm i && pnpm run package |