From 5f8aa417eb203628ec49a928483f8b2b02c4fe39 Mon Sep 17 00:00:00 2001 From: Simon Milfred Date: Tue, 7 May 2024 09:06:57 +0200 Subject: [PATCH] feat!: provide and v1 --- .github/workflows/release-package.yml | 43 - .github/workflows/release-please.yml | 40 + components/LongRead/LongReadController.vue | 11 +- components/LongRead/LongReadTarget.vue | 3 - package.json | 4 +- release-please-config.json | 13 + yarn.lock | 5742 ++++++++++++-------- 7 files changed, 3614 insertions(+), 2242 deletions(-) delete mode 100644 .github/workflows/release-package.yml create mode 100644 .github/workflows/release-please.yml create mode 100644 release-please-config.json diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml deleted file mode 100644 index 3b54f1d..0000000 --- a/.github/workflows/release-package.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Release Package - -on: - release: - types: [created] - -jobs: - build: - runs-on: ubuntu-latest - permissions: - contents: read - packages: read - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16.18 - registry-url: 'https://npm.pkg.github.com' - - run: npm install - env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - - run: npm ci - - run: npm test - - publish-gpr: - needs: build - runs-on: ubuntu-latest - permissions: - packages: write - contents: read - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16.18 - registry-url: https://npm.pkg.github.com/ - - run: npm install - env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - - run: npm ci - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..e377c34 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,40 @@ +name: Release Please and Publish + +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + packages: write + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v4 + id: release + with: + token: ${{ secrets.GITHUB_TOKEN }} + release-type: node + + - uses: actions/checkout@v4 + if: ${{ steps.release.outputs.release_created }} + + - uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: https://npm.pkg.github.com/ + if: ${{ steps.release.outputs.release_created }} + + - run: yarn + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + if: ${{ steps.release.outputs.release_created }} + + - run: yarn publish + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + if: ${{ steps.release.outputs.release_created }} diff --git a/components/LongRead/LongReadController.vue b/components/LongRead/LongReadController.vue index 7ad6069..99883a1 100644 --- a/components/LongRead/LongReadController.vue +++ b/components/LongRead/LongReadController.vue @@ -1,6 +1,3 @@ -