Skip to content

Commit dd0e264

Browse files
committed
ci: publish nightly nuxt-edge for nuxt v2
1 parent d496703 commit dd0e264

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/nuxt2-edge.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: nuxt2-nightly
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
jobs:
8+
nightly:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
ref: 'refs/heads/2.x'
14+
fetch-depth: 0 # All history
15+
- name: fetch tags
16+
run: git fetch --depth=1 origin "+refs/tags/*:refs/tags/*"
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: 14
20+
registry-url: 'https://registry.npmjs.org'
21+
- name: install
22+
run: yarn --check-files --frozen-lockfile --non-interactive
23+
- name: lint
24+
run: yarn test:lint
25+
- name: audit
26+
run: yarn run audit
27+
- name: build
28+
run: yarn test:fixtures -i
29+
env:
30+
NODE_OPTIONS: "--max_old_space_size=4096"
31+
- name: lint app
32+
run: yarn lint:app
33+
- name: test types
34+
run: yarn test:types
35+
- name: test dev
36+
run: yarn test:dev
37+
- name: test unit
38+
run: yarn test:unit
39+
- name: test e2e
40+
run: yarn test:e2e
41+
- name: bump version
42+
run: yarn lerna version --yes --no-changelog --no-git-tag-version --no-push --force-publish "*" --loglevel verbose
43+
- name: build
44+
run: PACKAGE_SUFFIX=edge yarn build
45+
- name: publish
46+
run: ./scripts/workspace-run npm publish -q
47+
env:
48+
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
49+

0 commit comments

Comments
 (0)