From 09820656b6464b7dc2d8015f5c0d798f12b4d952 Mon Sep 17 00:00:00 2001 From: Yohann Marchat Date: Wed, 15 Feb 2023 11:28:51 +0100 Subject: [PATCH 1/3] chore: remove test on lib --- .github/workflows/release-package.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release-package.yaml b/.github/workflows/release-package.yaml index f499843..26de4da 100644 --- a/.github/workflows/release-package.yaml +++ b/.github/workflows/release-package.yaml @@ -12,7 +12,6 @@ jobs: with: node-version: 16 - run: npm ci - - run: npm test publish-gpr: needs: build From 4d6755dba5a4eb886eaebdc2d22270b532881540 Mon Sep 17 00:00:00 2001 From: Yohann Marchat Date: Wed, 15 Feb 2023 11:34:13 +0100 Subject: [PATCH 2/3] chore: public package --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 237498a..237fbb2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "cooperation_jn_common_ui", - "private": true, + "name": "@sigrennesmetropole/cooperation_jn_common_ui", + "private": false, "version": "0.0.1", "repository": "https://github.com/sigrennesmetropole/cooperation_jn_common_ui.git", "publishConfig": { From a443a1b96b553e6790a62625b7bc583b5bae377e Mon Sep 17 00:00:00 2001 From: Yohann Marchat Date: Wed, 15 Feb 2023 14:17:26 +0100 Subject: [PATCH 3/3] chore: ci on push and release --- .github/workflows/release-package.yaml | 21 ++++++++++++++++++++- package-lock.json | 8 ++++---- package.json | 3 +-- 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-package.yaml b/.github/workflows/release-package.yaml index 26de4da..134e94b 100644 --- a/.github/workflows/release-package.yaml +++ b/.github/workflows/release-package.yaml @@ -1,9 +1,28 @@ name: Node.js Package on: - workflow_dispatch: + release: + push: + branches: + - main jobs: + patch: + if: github.event_name == 'push' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - name: Git config + run: | + git config --global user.email "github-actions[bot]" + git config --global user.name "github-actions[bot]@users.noreply.github.com" + - name: Version bump + run: npm version patch + - name: Git push version bump + run: git push origin main build: runs-on: ubuntu-latest steps: diff --git a/package-lock.json b/package-lock.json index 75f5ba5..c40a7ef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "cooperation_jn_common_ui", - "version": "2.0.0", + "name": "@sigrennesmetropole/cooperation_jn_common_ui", + "version": "0.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "cooperation_jn_common_ui", - "version": "2.0.0", + "name": "@sigrennesmetropole/cooperation_jn_common_ui", + "version": "0.0.1", "dependencies": { "npm-watch": "^0.11.0", "vue": "^3.2.38" diff --git a/package.json b/package.json index 237fbb2..d216054 100644 --- a/package.json +++ b/package.json @@ -29,8 +29,7 @@ "prepare": "husky install", "story": "histoire dev", "story:build": "histoire build", - "story:preview": "histoire preview", - "format": "prettier --write --list-different . && npm run lint:js -- --fix" + "story:preview": "histoire preview" }, "dependencies": { "npm-watch": "^0.11.0",