Skip to content

Commit 6467e8d

Browse files
author
Dennis Coorn
authored
Merge pull request #8 from leviy/github-action-workflow
GitHub workflow action added to automate publishing the package to the registry
2 parents 614408c + baffdbe commit 6467e8d

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/npmpublish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 12
15+
registry-url: https://npm.pkg.github.com/
16+
scope: '@leviy'
17+
- run: |
18+
cd packages/eslint-config-default/
19+
npm --no-git-tag-version version ${{github.event.release.name}}
20+
npm publish
21+
env:
22+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

packages/eslint-config-default/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@leviy/eslint-config-default",
3-
"version": "2.0.1",
3+
"version": "0.0.0",
44
"repository": {
55
"type": "git",
66
"url": "git+ssh://[email protected]:leviy/javascript-coding-standard.git"

0 commit comments

Comments
 (0)