Skip to content

Commit

Permalink
NPM auto publish
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpu authored Aug 7, 2021
1 parent 5121495 commit a6cd394
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/auto-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Auto publish and create release
on:
push:
branches:
- master
- next
pull_request:
branches:
- master
jobs:
autorelease:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Checkout
uses: actions/checkout@v2
- run: git fetch --unshallow --tags
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- name: Auto release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm ci
npx auto shipit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ libs/schematics/node_modules
.DS_Store
Thumbs.db
.circleci
.env
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
"@types/node": "^12.11.1",
"@types/prismjs": "^1.9.0",
"codelyzer": "^6.0.0",
"conventional-commits": "^1.6.0",
"cypress": "3.4.1",
"gh-pages": "^2.0.0",
"jasmine-core": "~3.6.0",
Expand All @@ -123,5 +124,15 @@
"ts-node": "~8.2.0",
"tslint": "~6.1.0",
"typescript": "~4.3.5"
},
"auto": {
"plugins": [
"npm",
"conventional-commits",
"first-time-contributor",
"released",
"twitter"
],
"onlyPublishWithReleaseLabel": true
}
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5176,6 +5176,11 @@ content-type@~1.0.4:
resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b"
integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==

conventional-commits@^1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/conventional-commits/-/conventional-commits-1.6.0.tgz#e23dec33a36ebce015a96fca67632f78449b39df"
integrity sha512-wjSM5laik2yZX3CivjSdaCYpDROSdVrQlJrHmuHXMZpz95I5kJn1I/82C8bFwFkJ50kJtVVn0RfBfmQctvAF7Q==

convert-source-map@^1.1.0, convert-source-map@^1.4.0, convert-source-map@^1.5.0, convert-source-map@^1.5.1:
version "1.6.0"
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.6.0.tgz#51b537a8c43e0f04dec1993bffcdd504e758ac20"
Expand Down

0 comments on commit a6cd394

Please sign in to comment.