From 8a761a4ff125defc7a054e1c0f4fd07be4c55f23 Mon Sep 17 00:00:00 2001 From: Rashid Date: Mon, 29 Jul 2024 21:27:09 +0500 Subject: [PATCH] ci: configured workflow to run commands from ./lib --- .github/workflows/release.yml | 8 ++++++-- .releaserc | 13 ------------- lib/.releaserc | 3 +++ lib/README.md | 6 +----- lib/package.json | 3 ++- package.json | 5 ----- 6 files changed, 12 insertions(+), 26 deletions(-) delete mode 100644 .releaserc create mode 100644 lib/.releaserc delete mode 100644 package.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c6dbbe4..94e8eb1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,7 @@ name: Release on: push: - branches: - release-workflow + branches: release-workflow permissions: contents: read # for checkout @@ -11,6 +10,9 @@ jobs: release: name: Release runs-on: ubuntu-latest + defaults: + run: + working-directory: ./lib permissions: contents: write # to be able to publish a GitHub release issues: write # to be able to comment on released issues @@ -29,6 +31,8 @@ jobs: run: npm install - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies run: npm audit signatures + - name: Building + run: npm run build - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.releaserc b/.releaserc deleted file mode 100644 index 0f13c70..0000000 --- a/.releaserc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "release": { - "branches": [ - "release-workflow" - ] - }, - "plugins": [ - "@semantic-release/npm", - { - "pkgRoot": "./lib" - } - ] -} diff --git a/lib/.releaserc b/lib/.releaserc new file mode 100644 index 0000000..38ed18d --- /dev/null +++ b/lib/.releaserc @@ -0,0 +1,3 @@ +{ + "branches": ["release-workflow"] +} \ No newline at end of file diff --git a/lib/README.md b/lib/README.md index 1511959..db0ef88 100644 --- a/lib/README.md +++ b/lib/README.md @@ -1,5 +1 @@ -# Vue 3 + Vite - -This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `