Skip to content

Commit

Permalink
fix: fix autopublish CD (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfrangu committed Jun 5, 2021
1 parent 72043a2 commit 8627c9d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 22 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
20 changes: 6 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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
}
}
}

0 comments on commit 8627c9d

Please sign in to comment.