-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.1 KB
/
npmpublish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Publish
on:
push:
branches:
- master
jobs:
publish-gpr:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci-skip]')"
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 18
# registry-url: https://npm.pkg.github.com/
# scope: "@rxdi"
- run: npx @rxdi/bolt install
- run: npm run lint --if-present
- run: npm test --if-present
- run: git config --global user.email '[email protected]'
- run: git config --global user.name "Kristiyan Tachev"
- run: npm version patch
- run: node ./change-version.js
- run: npm config set '//registry.npmjs.org/:_authToken' "${{secrets.NPM_TOKEN}}"
- run: npm run build
- run: npm run patch
- run: npm run publish-packages
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
- run: git add .
- run: git commit --amend --no-edit
- uses: ad-m/github-push-action@master
with:
tags: true
github_token: ${{ secrets.GITHUB_TOKEN }}