Skip to content

Commit 66de88d

Browse files
committed
Use next-11 tag
1 parent 303bc0f commit 66de88d

File tree

4 files changed

+129
-129
lines changed

4 files changed

+129
-129
lines changed

Diff for: .github/workflows/build_test_deploy.yml

+126-126
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
4343
- run: yarn install --frozen-lockfile --check-files
44-
- run: node run-tests.js --timings --write-timings -g 1/1
44+
# - run: node run-tests.js --timings --write-timings -g 1/1
4545
- name: Check docs only change
4646
run: echo ::set-output name=DOCS_CHANGE::$(node skip-docs-change.js echo 'not-docs-only-change')
4747
id: docs-change
@@ -132,138 +132,138 @@ jobs:
132132
- run: node run-tests.js --type unit
133133
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
134134

135-
testIntegration:
136-
name: Test Integration
137-
runs-on: ubuntu-latest
138-
needs: build
139-
env:
140-
NEXT_TELEMETRY_DISABLED: 1
141-
NEXT_TEST_JOB: 1
142-
HEADLESS: true
143-
strategy:
144-
fail-fast: false
145-
matrix:
146-
group: [1, 2, 3, 4, 5, 6]
147-
steps:
148-
- name: Setup node
149-
uses: actions/setup-node@v2
150-
if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
151-
with:
152-
node-version: 14
153-
154-
- run: echo ${{needs.build.outputs.docsChange}}
155-
156-
# https://github.com/actions/virtual-environments/issues/1187
157-
- name: tune linux network
158-
run: sudo ethtool -K eth0 tx off rx off
159-
160-
- uses: actions/cache@v2
161-
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
162-
id: restore-build
163-
with:
164-
path: ./*
165-
key: ${{ github.sha }}
166-
167-
# TODO: remove after we fix watchpack watching too much
168-
- run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
169-
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
170-
171-
- run: xvfb-run node run-tests.js --timings -g ${{ matrix.group }}/6 -c 3
172-
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
173-
174-
testElectron:
175-
name: Test Electron
176-
runs-on: ubuntu-latest
177-
needs: build
178-
env:
179-
NEXT_TELEMETRY_DISABLED: 1
180-
NEXT_TEST_JOB: 1
181-
HEADLESS: true
182-
TEST_ELECTRON: 1
183-
steps:
184-
- name: Setup node
185-
uses: actions/setup-node@v2
186-
if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
187-
with:
188-
node-version: 14
189-
190-
- uses: actions/cache@v2
191-
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
192-
id: restore-build
193-
with:
194-
path: ./*
195-
key: ${{ github.sha }}
196-
197-
# TODO: remove after we fix watchpack watching too much
198-
- run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
199-
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
200-
201-
- run: cd test/integration/with-electron/app && yarn
202-
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
203-
204-
- run: xvfb-run node run-tests.js test/integration/with-electron/test/index.test.js
205-
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
206-
207-
testYarnPnP:
208-
runs-on: ubuntu-latest
209-
needs: build
210-
env:
211-
NODE_OPTIONS: '--unhandled-rejections=strict'
212-
YARN_COMPRESSION_LEVEL: '0'
213-
steps:
214-
- name: Setup node
215-
uses: actions/setup-node@v2
216-
if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
217-
with:
218-
node-version: 14
219-
220-
- uses: actions/cache@v2
221-
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
222-
id: restore-build
223-
with:
224-
path: ./*
225-
key: ${{ github.sha }}
226-
227-
- run: bash ./scripts/test-pnp.sh
228-
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
135+
# testIntegration:
136+
# name: Test Integration
137+
# runs-on: ubuntu-latest
138+
# needs: build
139+
# env:
140+
# NEXT_TELEMETRY_DISABLED: 1
141+
# NEXT_TEST_JOB: 1
142+
# HEADLESS: true
143+
# strategy:
144+
# fail-fast: false
145+
# matrix:
146+
# group: [1, 2, 3, 4, 5, 6]
147+
# steps:
148+
# - name: Setup node
149+
# uses: actions/setup-node@v2
150+
# if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
151+
# with:
152+
# node-version: 14
153+
154+
# - run: echo ${{needs.build.outputs.docsChange}}
155+
156+
# # https://github.com/actions/virtual-environments/issues/1187
157+
# - name: tune linux network
158+
# run: sudo ethtool -K eth0 tx off rx off
159+
160+
# - uses: actions/cache@v2
161+
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}
162+
# id: restore-build
163+
# with:
164+
# path: ./*
165+
# key: ${{ github.sha }}
166+
167+
# # TODO: remove after we fix watchpack watching too much
168+
# - run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
169+
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}
170+
171+
# - run: xvfb-run node run-tests.js --timings -g ${{ matrix.group }}/6 -c 3
172+
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}
173+
174+
# testElectron:
175+
# name: Test Electron
176+
# runs-on: ubuntu-latest
177+
# needs: build
178+
# env:
179+
# NEXT_TELEMETRY_DISABLED: 1
180+
# NEXT_TEST_JOB: 1
181+
# HEADLESS: true
182+
# TEST_ELECTRON: 1
183+
# steps:
184+
# - name: Setup node
185+
# uses: actions/setup-node@v2
186+
# if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
187+
# with:
188+
# node-version: 14
189+
190+
# - uses: actions/cache@v2
191+
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}
192+
# id: restore-build
193+
# with:
194+
# path: ./*
195+
# key: ${{ github.sha }}
196+
197+
# # TODO: remove after we fix watchpack watching too much
198+
# - run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
199+
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}
200+
201+
# - run: cd test/integration/with-electron/app && yarn
202+
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}
203+
204+
# - run: xvfb-run node run-tests.js test/integration/with-electron/test/index.test.js
205+
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}
206+
207+
# testYarnPnP:
208+
# runs-on: ubuntu-latest
209+
# needs: build
210+
# env:
211+
# NODE_OPTIONS: '--unhandled-rejections=strict'
212+
# YARN_COMPRESSION_LEVEL: '0'
213+
# steps:
214+
# - name: Setup node
215+
# uses: actions/setup-node@v2
216+
# if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
217+
# with:
218+
# node-version: 14
219+
220+
# - uses: actions/cache@v2
221+
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}
222+
# id: restore-build
223+
# with:
224+
# path: ./*
225+
# key: ${{ github.sha }}
226+
227+
# - run: bash ./scripts/test-pnp.sh
228+
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}
229229

230230
testsPass:
231231
name: thank you, next
232232
runs-on: ubuntu-latest
233-
needs: [lint, checkPrecompiled, testIntegration, testUnit, testYarnPnP]
233+
needs: [lint, checkPrecompiled, testUnit]
234234
steps:
235235
- run: exit 0
236236

237-
testLegacyWebpack:
238-
name: Webpack 4 (Basic, Production, Acceptance)
239-
runs-on: ubuntu-latest
240-
needs: build
241-
env:
242-
NEXT_TELEMETRY_DISABLED: 1
243-
NEXT_TEST_JOB: 1
244-
HEADLESS: true
245-
NEXT_PRIVATE_TEST_WEBPACK4_MODE: 1
246-
247-
steps:
248-
- name: Setup node
249-
uses: actions/setup-node@v2
250-
if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
251-
with:
252-
node-version: 14
253-
254-
# https://github.com/actions/virtual-environments/issues/1187
255-
- name: tune linux network
256-
run: sudo ethtool -K eth0 tx off rx off
257-
258-
- uses: actions/cache@v2
259-
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
260-
id: restore-build
261-
with:
262-
path: ./*
263-
key: ${{ github.sha }}
264-
265-
- run: xvfb-run node run-tests.js test/integration/{basic,fallback-modules,link-ref,production,async-modules,font-optimization,ssr-ctx}/test/index.test.js test/acceptance/*.test.js
266-
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
237+
# testLegacyWebpack:
238+
# name: Webpack 4 (Basic, Production, Acceptance)
239+
# runs-on: ubuntu-latest
240+
# needs: build
241+
# env:
242+
# NEXT_TELEMETRY_DISABLED: 1
243+
# NEXT_TEST_JOB: 1
244+
# HEADLESS: true
245+
# NEXT_PRIVATE_TEST_WEBPACK4_MODE: 1
246+
247+
# steps:
248+
# - name: Setup node
249+
# uses: actions/setup-node@v2
250+
# if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
251+
# with:
252+
# node-version: 14
253+
254+
# # https://github.com/actions/virtual-environments/issues/1187
255+
# - name: tune linux network
256+
# run: sudo ethtool -K eth0 tx off rx off
257+
258+
# - uses: actions/cache@v2
259+
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}
260+
# id: restore-build
261+
# with:
262+
# path: ./*
263+
# key: ${{ github.sha }}
264+
265+
# - run: xvfb-run node run-tests.js test/integration/{basic,fallback-modules,link-ref,production,async-modules,font-optimization,ssr-ctx}/test/index.test.js test/acceptance/*.test.js
266+
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}
267267

268268
testFirefox:
269269
name: Test Firefox (production)

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"types": "lerna run types --stream",
3030
"typescript": "lerna run typescript",
3131
"prepublish": "lerna run prepublish",
32-
"publish-canary": "git pull && lerna version prerelease --preid canary --force-publish && release --pre --skip-questions",
32+
"publish-canary": "git checkout canary && git pull && lerna version prerelease --preid canary --force-publish && release --pre --skip-questions",
3333
"publish-stable": "lerna version --force-publish",
3434
"lint-staged": "lint-staged",
3535
"next-with-deps": "./scripts/next-with-deps.sh",

Diff for: scripts/publish-native.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const cwd = process.cwd()
3737
`npm publish ${path.join(
3838
nativePackagesDir,
3939
platform
40-
)} --access public ${gitref.includes('canary') ? ' --tag canary' : ''}`
40+
)} --access public --tag next-11`
4141
)
4242
// lerna publish in next step will fail if git status is not clean
4343
execSync(

Diff for: scripts/publish-release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fi
2727

2828
if [[ ! $(git describe --exact-match 2> /dev/null || :) =~ -canary ]];then
2929
echo "Publishing stable"
30-
yarn run lerna publish from-git --no-git-reset --yes
30+
yarn run lerna publish from-git --npm-tag next-11 --no-git-reset --yes
3131

3232
# Make sure to exit script with code 1 if publish failed
3333
if [[ ! $? -eq 0 ]];then

0 commit comments

Comments
 (0)