fix: fix autopublish CD (#140)

This commit is contained in:
Vlad Frangu
2021-06-05 16:09:13 +03:00
committed by GitHub
parent 72043a2645
commit 8627c9d219
3 changed files with 14 additions and 22 deletions

View File

@@ -14,10 +14,10 @@ jobs:
- name: Checkout Project
uses: actions/checkout@v2
- name: Use Node.js 14
- name: Use Node.js v16
uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
- name: Install Dependencies
run: npm ci
@@ -40,10 +40,10 @@ jobs:
- name: Checkout Project
uses: actions/checkout@v2
- name: Use Node.js 14
- name: Use Node.js v16
uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
- name: Install Dependencies
run: npm ci

View File

@@ -15,18 +15,18 @@ jobs:
with:
fetch-depth: 0
- name: Install Node v14
- name: Install Node v16
uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Publish
- name: Bump Version & Publish
run: |
npx semantic-release
npx standard-version
npm version --git-tag-version=false $(jq --raw-output '.version' package.json)-next.$(git rev-parse --verify HEAD)
npm publish --tag next || true
env:

View File

@@ -130,7 +130,6 @@
"prettier": "^2.3.0",
"pretty-quick": "^3.1.0",
"rimraf": "^3.0.2",
"semantic-release": "^17.4.3",
"typescript": "^4.3.2"
},
"repository": {
@@ -196,18 +195,11 @@
]
}
},
"release": {
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
[
"@semantic-release/npm",
{
"npmPublish": false
}
]
]
"standard-version": {
"skip": {
"changelog": true,
"commit": true,
"tag": true
}
}
}