From 8627c9d2195aaa0a97de2fdf9f64ba0c0ff6db02 Mon Sep 17 00:00:00 2001 From: Vlad Frangu Date: Sat, 5 Jun 2021 16:09:13 +0300 Subject: [PATCH] fix: fix autopublish CD (#140) --- .github/workflows/cicd.yml | 8 ++++---- .github/workflows/publish-next.yml | 8 ++++---- package.json | 20 ++++++-------------- 3 files changed, 14 insertions(+), 22 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index f15c8529..8e2f7ba5 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -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 diff --git a/.github/workflows/publish-next.yml b/.github/workflows/publish-next.yml index 0ad933e4..e90993d4 100644 --- a/.github/workflows/publish-next.yml +++ b/.github/workflows/publish-next.yml @@ -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: diff --git a/package.json b/package.json index 6db327af..6a69c0d2 100644 --- a/package.json +++ b/package.json @@ -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 + } } }