mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-05 00:55:30 +00:00
feat(ci): published merged PRs
This commit is contained in:
parent
fd54d21e1a
commit
215aa59b77
30
.github/workflows/ci.yml
vendored
30
.github/workflows/ci.yml
vendored
@ -72,3 +72,33 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: nim-waku-logs
|
name: nim-waku-logs
|
||||||
path: log/
|
path: log/
|
||||||
|
|
||||||
|
release_next:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
|
needs: [build_and_test]
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2.3.3
|
||||||
|
|
||||||
|
- name: Install NodeJS
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: ${{ env.NODE_JS }}
|
||||||
|
|
||||||
|
- name: install using npm ci
|
||||||
|
uses: bahmutov/npm-install@v1
|
||||||
|
|
||||||
|
- name: Append git hash to version
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
CURR_VERSION=$(cat package.json | jq .version | tr -d '"')
|
||||||
|
GIT_HASH=$(git rev-parse --short HEAD)
|
||||||
|
cat package.json| jq --arg version "$CURR_VERSION-$GIT_HASH" '.version |= $version' > _package.json
|
||||||
|
mv -f _package.json package.json
|
||||||
|
|
||||||
|
- name: Authenticate with registry
|
||||||
|
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ./.npmrc
|
||||||
|
|
||||||
|
- name: publish
|
||||||
|
run: npm publish --tag next --access public
|
||||||
|
Loading…
x
Reference in New Issue
Block a user