Skip to content

Commit a8f5677

Browse files
authored
Merge pull request #776 from RBC/feat/publish-plugin-sample
feat: bump plugin sample to v0.1.0, add to npm publish workflow
2 parents 50ccb18 + 53a5176 commit a8f5677

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

.github/workflows/npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
9+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
1010
# Setup .npmrc file to publish to npm
1111
- uses: actions/setup-node@v4
1212
with:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish samples to NPM
2+
3+
on:
4+
push:
5+
tags:
6+
- 'sample-*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
13+
# Setup .npmrc file to publish to npm
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: '18.x'
17+
registry-url: 'https://registry.npmjs.org'
18+
- name: publish sample package
19+
run: npm install --include peer && npm publish --access=public
20+
working-directory: plugins/git-proxy-plugin-samples
21+
env:
22+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

plugins/git-proxy-plugin-samples/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@finos/git-proxy-plugin-samples",
3-
"version": "0.1.0-alpha.0",
3+
"version": "0.1.0",
44
"description": "A set of sample (dummy) plugins for GitProxy to demonstrate how plugins are authored.",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1"
@@ -16,6 +16,6 @@
1616
"express": "^4.18.2"
1717
},
1818
"peerDependencies": {
19-
"@finos/git-proxy": "1.3.5-alpha.5"
19+
"@finos/git-proxy": "^1.4.0"
2020
}
2121
}

0 commit comments

Comments
 (0)