Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: switch package manager to npm #779

Merged
merged 7 commits into from
Nov 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]

- run: yarn
- run: yarn lint
- run: yarn lint
working-directory: ./gatsby-image-gallery
with:
node-version: 16
- run: npm i -g npm@latest
- run: npm i
- run: npm run lint

commitlint:
runs-on: ubuntu-latest
Expand All @@ -45,11 +45,10 @@ jobs:
with:
node-version: ${{ matrix.node_version }}

- run: yarn
- run: yarn build
working-directory: ./gatsby-image-gallery
- run: yarn test --ci --coverage --maxWorkers=2
working-directory: ./gatsby-image-gallery
- run: npm i -g npm@latest
- run: npm i
- run: npm run build --workspace gatsby-image-gallery
- run: npm run test --ci --coverage --maxWorkers=2 --workspace gatsby-image-gallery

publish:
runs-on: ubuntu-latest
Expand All @@ -61,7 +60,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
- run: yarn
with:
node-version: 16
- run: npm i -g npm@latest
- run: npm i
- run: cp README.md gatsby-image-gallery/
- name: Run Sematic release
working-directory: ./gatsby-image-gallery
Expand Down
33 changes: 0 additions & 33 deletions .github/workflows/yarn-upgrade.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ yarn-error.log*

.cache
public

# Local Netlify folder
.netlify
4 changes: 3 additions & 1 deletion gatsby-image-gallery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@
},
"dependencies": {
"react-image-lightbox": "^5.1.4",
"styled-components": "^5.0"
"styled-components": ">= 5.0"
},
"devDependencies": {
"@size-limit/preset-small-lib": "6.0.4",
"@types/jest": "^27.0.2",
"@types/react": "17.0.33",
"@types/react-dom": "17.0.10",
"@types/react-test-renderer": "17.0.1",
Expand All @@ -48,6 +49,7 @@
"react-dom": "17.0.2",
"react-test-renderer": "17.0.2",
"size-limit": "6.0.4",
"ts-jest": "27.0.7",
"tslib": "2.3.1",
"typescript": "4.4.4",
"typescript-plugin-css-modules": "3.4.0"
Expand Down
4 changes: 2 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[build]
publish = "example/public"
command = "yarn workspace example build"
environment = { GATSBY_CPU_COUNT = "1" }
command = "npm run build --workspace example"
environment = { GATSBY_CPU_COUNT = "1", NPM_VERSION = "8" }
Loading