Skip to content

Commit

Permalink
Merge pull request #776 from RBC/feat/publish-plugin-sample
Browse files Browse the repository at this point in the history
feat: bump plugin sample to v0.1.0, add to npm publish workflow
  • Loading branch information
coopernetes authored Dec 1, 2024
2 parents 50ccb18 + 53a5176 commit a8f5677
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/sample-publish.yml
Original file line number Diff line number Diff line change
@@ -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 }}
4 changes: 2 additions & 2 deletions plugins/git-proxy-plugin-samples/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -16,6 +16,6 @@
"express": "^4.18.2"
},
"peerDependencies": {
"@finos/git-proxy": "1.3.5-alpha.5"
"@finos/git-proxy": "^1.4.0"
}
}

0 comments on commit a8f5677

Please sign in to comment.