Skip to content

Commit

Permalink
Merge pull request #82 from mohatt/pnpm
Browse files Browse the repository at this point in the history
chore(deps): migrated from npm to pnpm
  • Loading branch information
mohatt authored Feb 3, 2021
2 parents 81d741a + 792c066 commit 39d0be4
Show file tree
Hide file tree
Showing 5 changed files with 7,633 additions and 34,642 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,32 @@ on:
jobs:
test:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-npm-
- run: npm ci
- run: npm run test:coverage
${{ runner.os }}-build-
- run: |
npm -g install [email protected]
pnpm set verify-store-integrity false
- run: pnpm install
- run: pnpm run test:coverage
- uses: codecov/codecov-action@v1
- run: mv "$(npm pack | tail -n 1)" pkg.tgz
- run: mv "$(pnpm pack | tail -n 1)" pkg.tgz
- uses: actions/upload-artifact@v2
with:
name: package-art
path: pkg.tgz
test_example:
needs: test
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
defaults:
run:
working-directory: example
Expand All @@ -48,9 +51,9 @@ jobs:
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-example-npm-${{ hashFiles('**/example/package.json') }}
key: ${{ runner.os }}-build-example-${{ hashFiles('**/example/package.json') }}
restore-keys: |
${{ runner.os }}-example-npm-
${{ runner.os }}-build-example-npm-
- run: npm install
- run: npm run build --prefix-paths
- if: github.event_name == 'push'
Expand All @@ -61,7 +64,7 @@ jobs:
deploy_example:
if: github.event_name == 'push'
needs: test_example
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/download-artifact@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"gatsby": "^2.25.0",
"gatsby-plugin-advanced-pages": "^2.0.0",
"gatsby-plugin-advanced-pages": "^2.1.0",
"gatsby-source-filesystem": "^2.9.0",
"gatsby-transformer-remark": "^2.14.0",
"react": "^16.14.0",
Expand Down
Loading

0 comments on commit 39d0be4

Please sign in to comment.