Skip to content
This repository was archived by the owner on Sep 30, 2023. It is now read-only.

Commit 6c0a51b

Browse files
authored
Merge pull request #91 from orbitdb/ci/publish-next
Add Github Action to publish RC version
2 parents 63fb61d + 76ad119 commit 6c0a51b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Node.js Package (next tag)
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
publish-npm:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 'lts/*'
17+
registry-url: https://registry.npmjs.org/
18+
- run: npm ci
19+
- run: npm test
20+
- run: |
21+
npm version prerelease --no-git-tag-version \
22+
--preid=`git rev-parse --short HEAD`
23+
npm publish --tag next
24+
env:
25+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)