Skip to content

Commit

Permalink
fix(github-actions): build on multiple node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
pathurs committed Sep 20, 2020
1 parent 73af624 commit d8fee11
Showing 1 changed file with 6 additions and 23 deletions.
29 changes: 6 additions & 23 deletions .github/workflows/nodejs-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,18 @@ jobs:
needs: [lint]
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 13.x, 14.x]

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Setup Node.js
- name: Setup Node.js with ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: 14
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: |
Expand Down Expand Up @@ -133,27 +137,6 @@ jobs:
- name: Install dependencies
run: npm ci

# - name: Set Git Signing Key
# run: |
# # Ensure git uses gpg2
# git config --global gpg.program gpg2
# # Decrypt the git_gpg_keys.asc.enc key into git_gpg_keys.asc
# gpg --output /tmp/git_gpg_keys.asc --decrypt --batch --passphrase ${{ secrets.GPG_DECRYPT_PASSPHRASE }} git_gpg_keys.asc.enc
# # Make sure only the current user can read the keys
# chmod 600 /tmp/git_gpg_keys.asc
# # Import the gpg key
# gpg --batch --yes --import /tmp/git_gpg_keys.asc
# # Create a script that will pass the passphrase to the gpg CLI called by git
# echo '/usr/bin/gpg2 --passphrase ${{ secrets.GPG_PASSPHRASE }} --batch --no-tty "$@"' > /tmp/gpg-with-passphrase
# # Make the script executable
# chmod +x /tmp/gpg-with-passphrase
# # Configure git to use the script that passes the passphrase
# git config gpg.program "/tmp/gpg-with-passphrase"
# # Configure git to sign the commits and tags
# git config commit.gpgsign true
# # Configure git to use your GPG key
# git config --global user.signingkey ${{ secrets.GPG_KEY_ID }}

- name: Run Build
run: npm run distribute

Expand Down

0 comments on commit d8fee11

Please sign in to comment.