Skip to content

Commit a8de303

Browse files
committed
fix: build
1 parent 26b7be7 commit a8de303

File tree

5 files changed

+4183
-1781
lines changed

5 files changed

+4183
-1781
lines changed

.github/workflows/npm.yml

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@ on:
55
types: [published]
66

77
jobs:
8-
build:
9-
name: build and test
8+
publish:
9+
needs: build
1010
runs-on: ubuntu-latest
1111

12-
strategy:
13-
matrix:
14-
node-version: ['14']
15-
1612
steps:
1713
- uses: actions/checkout@v2
1814
with:
@@ -21,37 +17,14 @@ jobs:
2117
- name: Set Node.js
2218
uses: actions/setup-node@v2
2319
with:
24-
node-version: ${{ matrix.node }}
20+
node-version: '14'
2521

2622
- name: Install Dependencies
2723
run: yarn install --frozen-lockfile
2824

29-
# - name: Lint
30-
# run: yarn lint
31-
3225
- name: Build
3326
run: yarn build
3427

35-
# - name: Test
36-
# run: yarn test
37-
38-
publish:
39-
needs: build
40-
runs-on: ubuntu-latest
41-
42-
steps:
43-
- uses: actions/checkout@v2
44-
with:
45-
persist-credentials: false
46-
47-
- name: Set Node.js
48-
uses: actions/setup-node@v1
49-
with:
50-
node-version: '14'
51-
52-
- name: Install Dependencies
53-
run: yarn install --frozen-lockfile
54-
5528
- name: Extract version
5629
id: version
5730
uses: olegtarasov/get-tag@v2.1

example/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
"@types/react": "^16.9.51",
1818
"@types/react-dom": "^16.9.8",
1919
"@types/styled-components": "^5.1.3",
20-
"gatsby": "^2.24.47",
21-
"gatsby-theme-woly": "^0.4.0",
22-
"react": "^16.13.1",
23-
"react-dom": "^16.13.1",
20+
"gatsby": "^2.32.3",
21+
"gatsby-theme-woly": "0.0.0-real-version-will-be-set-at-ci",
22+
"react": "^16.14",
23+
"react-dom": "^16.14",
24+
"react-is": "^16",
2425
"styled-components": "^5.2.0"
2526
}
26-
}
27+
}

gatsby-theme-woly/gatsby-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = (themeOptions) => {
44

55
return {
66
plugins: [
7-
'gatsby-plugin-sitemap',
7+
// 'gatsby-plugin-sitemap',
88
'gatsby-plugin-react-helmet',
99
{
1010
resolve: `gatsby-plugin-mdx`,

gatsby-theme-woly/package.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gatsby-theme-woly",
3-
"version": "0.5.0",
3+
"version": "0.0.0-real-version-will-be-set-at-ci",
44
"main": "index.js",
55
"author": {
66
"name": "Sergey Sova",
@@ -23,7 +23,7 @@
2323
],
2424
"license": "MIT",
2525
"peerDependencies": {
26-
"gatsby": "^2.24.0",
26+
"gatsby": "^2.32.0",
2727
"react": "^16.13.0",
2828
"react-dom": "^16.13.0"
2929
},
@@ -33,17 +33,20 @@
3333
"change-case": "^4.1.1",
3434
"gatsby-plugin-mdx": "^1.2.34",
3535
"gatsby-plugin-react-helmet": "^3.3.10",
36+
"gatsby-plugin-sharp": "^2.14.1",
3637
"gatsby-plugin-sitemap": "^2.4.11",
3738
"gatsby-plugin-styled-components": "^3.3.10",
3839
"gatsby-source-filesystem": "^2.3.27",
40+
"gatsby-transformer-sharp": "^2.12.0",
3941
"prism-react-renderer": "^1.1.1",
4042
"react-helmet": "^6.1.0"
4143
},
4244
"devDependencies": {
4345
"babel-plugin-styled-components": "^1.11.1",
44-
"gatsby": "^2.24.47",
45-
"react": "^16.13.1",
46-
"react-dom": "^16.13.1",
47-
"styled-components": "^5.1.1"
46+
"gatsby": "^2.32.3",
47+
"react": "^16.14",
48+
"react-dom": "^16.14",
49+
"styled-components": "^5.1.1",
50+
"typescript": "^4.1.3"
4851
}
49-
}
52+
}

0 commit comments

Comments
 (0)