mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
ci: fetch tags for proper version bump
This commit is contained in:
parent
23f3b0b40c
commit
0ff9b59e93
24
.github/workflows/nightly.yml
vendored
24
.github/workflows/nightly.yml
vendored
@ -8,10 +8,12 @@ jobs:
|
|||||||
nightly:
|
nightly:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@2
|
||||||
with:
|
with:
|
||||||
ref: 'refs/heads/dev'
|
ref: 'refs/heads/dev'
|
||||||
fetch-depth: 0 # All history
|
fetch-depth: 0 # All history
|
||||||
|
- name: fetch tags
|
||||||
|
run: git fetch --depth=1 origin "+refs/tags/*:refs/tags/*"
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 12
|
node-version: 12
|
||||||
@ -38,20 +40,22 @@ jobs:
|
|||||||
run: yarn lerna version --yes --no-changelog --no-git-tag-version --no-push --force-publish "*" --loglevel verbose
|
run: yarn lerna version --yes --no-changelog --no-git-tag-version --no-push --force-publish "*" --loglevel verbose
|
||||||
- name: build
|
- name: build
|
||||||
run: PACKAGE_SUFFIX=edge yarn build
|
run: PACKAGE_SUFFIX=edge yarn build
|
||||||
# - name: publish
|
- name: publish
|
||||||
# run: ./scripts/workspace-run npm publish -q
|
run: ./scripts/workspace-run npm publish -q
|
||||||
# env:
|
env:
|
||||||
# NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
|
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
|
||||||
|
|
||||||
# Anchors still not supported :(
|
# Anchors still not supported :(
|
||||||
# https://github.community/t5/GitHub-Actions/Support-for-YAML-anchors/td-p/30336
|
# https://github.community/t5/GitHub-Actions/Support-for-YAML-anchors/td-p/30336
|
||||||
nightly-next:
|
nightly-next:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@2
|
||||||
with:
|
with:
|
||||||
ref: 'refs/heads/next'
|
ref: 'refs/heads/next'
|
||||||
fetch-depth: 0 # All history
|
fetch-depth: 0 # All history
|
||||||
|
- name: fetch tags
|
||||||
|
run: git fetch --depth=1 origin "+refs/tags/*:refs/tags/*"
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 12
|
node-version: 12
|
||||||
@ -78,9 +82,9 @@ jobs:
|
|||||||
run: yarn lerna version --yes --no-changelog --no-git-tag-version --no-push --force-publish "*" --loglevel verbose
|
run: yarn lerna version --yes --no-changelog --no-git-tag-version --no-push --force-publish "*" --loglevel verbose
|
||||||
- name: build
|
- name: build
|
||||||
run: PACKAGE_SUFFIX=edge yarn build
|
run: PACKAGE_SUFFIX=edge yarn build
|
||||||
# - name: publish
|
- name: publish
|
||||||
# run: ./scripts/workspace-run npm publish --tag next -q
|
run: ./scripts/workspace-run npm publish --tag next -q
|
||||||
# env:
|
env:
|
||||||
# NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
|
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
|
||||||
|
|
||||||
|
|
||||||
|
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
@ -29,9 +29,12 @@ jobs:
|
|||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
|
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 100
|
fetch-depth: 0 # All history
|
||||||
|
|
||||||
|
- name: fetch tags
|
||||||
|
run: git fetch --depth=1 origin "+refs/tags/*:refs/tags/*"
|
||||||
|
|
||||||
- name: cache node_modules
|
- name: cache node_modules
|
||||||
id: node_modules_cache_id
|
id: node_modules_cache_id
|
||||||
|
Loading…
Reference in New Issue
Block a user