build: npm publish config

This commit is contained in:
Andrey Ponomarenko 2020-09-25 08:44:07 +03:00
parent d3387597fb
commit 1da108a93d
4 changed files with 23 additions and 3 deletions

18
.github/workflows/release.yaml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Release
on:
push:
branches:
- master
jobs:
test-and-release:
name: release
runs-on: ubuntu-18.04
steps:
- name: Install dependencies
run: yarn
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn release

View File

@ -3,7 +3,7 @@
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/git",
"@semantic-release/github",
{
"path": "@semantic-release/npm",
"npmPublish": true

View File

@ -5,7 +5,8 @@
"author": "Andrey Ponomarenko",
"license": "MIT",
"publishConfig": {
"access": "public"
"access": "public",
"branches": ["master"]
},
"files": [
"dist/"
@ -27,6 +28,7 @@
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/git": "^9.0.0",
"@semantic-release/github": "^7.1.1",
"@semantic-release/npm": "^7.0.6",
"@semantic-release/release-notes-generator": "^9.0.1",
"@types/fs-extra": "^9.0.1",

View File

@ -363,7 +363,7 @@
micromatch "^4.0.0"
p-reduce "^2.0.0"
"@semantic-release/github@^7.0.0":
"@semantic-release/github@^7.0.0", "@semantic-release/github@^7.1.1":
version "7.1.1"
resolved "https://registry.yarnpkg.com/@semantic-release/github/-/github-7.1.1.tgz#e998aa9a9cd770838d9f27c64f060c2b686b9d95"
integrity sha512-w8CLCvGVKNe2FPOYQ68OFxFVNNha7YRzptnwTZYdjXYtgTDKw0XVfnMSd9NlJeQPYGfQmIhIVPNBU/cA6zUY0A==