From 5f504b9a77714d20f85fa969396bfadd2a3ad239 Mon Sep 17 00:00:00 2001 From: Thomas Cooper Date: Wed, 30 Oct 2024 15:00:24 -0400 Subject: [PATCH 1/3] feat: bump plugin sample to v0.1.0, add to npm publish workflow --- .github/workflows/npm.yml | 6 +++++- plugins/git-proxy-plugin-samples/package.json | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 44a3c4a7f..3dca18bee 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -6,7 +6,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 # Setup .npmrc file to publish to npm - uses: actions/setup-node@v4 with: @@ -17,3 +17,7 @@ jobs: - run: npm publish --access=public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: npm install --include peer && npm publish --access=public || echo "Ignoring error" + working-directory: plugins/git-proxy-plugin-samples + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/plugins/git-proxy-plugin-samples/package.json b/plugins/git-proxy-plugin-samples/package.json index 923a0dba2..bcc2efacf 100644 --- a/plugins/git-proxy-plugin-samples/package.json +++ b/plugins/git-proxy-plugin-samples/package.json @@ -1,6 +1,6 @@ { "name": "@finos/git-proxy-plugin-samples", - "version": "0.1.0-alpha.0", + "version": "0.1.0", "description": "A set of sample (dummy) plugins for GitProxy to demonstrate how plugins are authored.", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" @@ -16,6 +16,6 @@ "express": "^4.18.2" }, "peerDependencies": { - "@finos/git-proxy": "1.3.5-alpha.5" + "@finos/git-proxy": "1.4.0" } } From 2c010924e19f14908e686f0f8f493c7c8785653b Mon Sep 17 00:00:00 2001 From: Thomas Cooper Date: Wed, 30 Oct 2024 16:36:52 -0400 Subject: [PATCH 2/3] chore: separate plugin sample publish into separate workflow --- .github/workflows/npm.yml | 4 ---- .github/workflows/sample-publish.yml | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/sample-publish.yml diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 3dca18bee..3701af4e1 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -17,7 +17,3 @@ jobs: - run: npm publish --access=public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - run: npm install --include peer && npm publish --access=public || echo "Ignoring error" - working-directory: plugins/git-proxy-plugin-samples - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/sample-publish.yml b/.github/workflows/sample-publish.yml new file mode 100644 index 000000000..459564a70 --- /dev/null +++ b/.github/workflows/sample-publish.yml @@ -0,0 +1,22 @@ +name: Publish samples to NPM + +on: + push: + tags: + - 'sample-*' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v4 + with: + node-version: '18.x' + registry-url: 'https://registry.npmjs.org' + - name: publish sample package + run: npm install --include peer && npm publish --access=public + working-directory: plugins/git-proxy-plugin-samples + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From 6aa8f88eed5ccd456d79e298adfe16bb8e30760f Mon Sep 17 00:00:00 2001 From: Thomas Cooper Date: Mon, 11 Nov 2024 15:18:58 -0500 Subject: [PATCH 3/3] Update plugins/git-proxy-plugin-samples/package.json --- plugins/git-proxy-plugin-samples/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/git-proxy-plugin-samples/package.json b/plugins/git-proxy-plugin-samples/package.json index bcc2efacf..a3c11caa1 100644 --- a/plugins/git-proxy-plugin-samples/package.json +++ b/plugins/git-proxy-plugin-samples/package.json @@ -16,6 +16,6 @@ "express": "^4.18.2" }, "peerDependencies": { - "@finos/git-proxy": "1.4.0" + "@finos/git-proxy": "^1.4.0" } }