Skip to content

Commit da88bca

Browse files
committed
add npm publishing workflow
1 parent 90ac774 commit da88bca

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

.github/wokrflows/publish.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish to NPM
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # This will run the workflow when you push a tag with a version format, like v1.0.0
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Clone repository
14+
uses: actions/checkout@v3
15+
16+
- name: Publish to NPM
17+
run: |
18+
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
19+
if grep -qE "_authToken=.{1,}" .npmrc; then
20+
npm publish
21+
else
22+
echo "Failed to create .npmrc file" && exit 1
23+
fi
24+
env:
25+
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ Get information about the current account subscription its usage.
2222

2323
ScrapFly API key is used as a credential key. To get your API key, register for free.
2424

25-
## Compatibility
26-
27-
_State the minimum n8n version, as well as which versions you test against. You can also include any known version incompatibility issues._
28-
2925
## Usage
3026

3127
For example usage and predefined workflow tempaltes, refer to [ScrapFly's n8n integration docs](https://scrapfly.io/docs/integration/n8n).

0 commit comments

Comments
 (0)