aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-09-08 10:33:47 +0200
committerLibravatar GitHub <noreply@github.com>2021-09-08 10:33:47 +0200
commitb94c29c9890c46bb6388d53bc549cc24f19f0649 (patch)
treeed38a70538414db7e8f6091d6ce5b85e50728354 /.github
parentRemove dependency on 'require' of 'electron' and 'electron/remote' modules. (diff)
downloadferdium-recipes-b94c29c9890c46bb6388d53bc549cc24f19f0649.tar.gz
ferdium-recipes-b94c29c9890c46bb6388d53bc549cc24f19f0649.tar.zst
ferdium-recipes-b94c29c9890c46bb6388d53bc549cc24f19f0649.zip
build: migrate from npm to pnpm (#603)
Diffstat (limited to '.github')
-rw-r--r--.github/PULL_REQUEST_TEMPLATE/add_recipe.md4
-rw-r--r--.github/workflows/ferdi-builds.yml23
2 files changed, 17 insertions, 10 deletions
diff --git a/.github/PULL_REQUEST_TEMPLATE/add_recipe.md b/.github/PULL_REQUEST_TEMPLATE/add_recipe.md
index dc66eeb..1dd0379 100644
--- a/.github/PULL_REQUEST_TEMPLATE/add_recipe.md
+++ b/.github/PULL_REQUEST_TEMPLATE/add_recipe.md
@@ -18,9 +18,11 @@ Service ID: [What ID does your recipe use?]
18``` 18```
19 19
20### Additional information 20### Additional information
21
21<!-- Please also accept the following checkboxes --> 22<!-- Please also accept the following checkboxes -->
23
22- [ ] I am the original creator of this package 24- [ ] I am the original creator of this package
23- [ ] I have run the `npm run package` and verified that there are no validation errors reported for this package 25- [ ] I have run the `pnpm run package` and verified that there are no validation errors reported for this package
24- [ ] My recipe has been tested to work inside Ferdi 26- [ ] My recipe has been tested to work inside Ferdi
25 27
26<!-- Here you can write anything else you want to tell us. --> 28<!-- Here you can write anything else you want to tell us. -->
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
11name: Ferdi Recipes Builds 11name: 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