Skip to content

Commit 30a4370

Browse files
author
Dennis Coorn
authored
Merge pull request #9 from leviy/github-action-workflow
GitHub workflow action added to automate publishing the package to the registry
2 parents 89d81c1 + 3788374 commit 30a4370

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

.github/workflows/npmpublish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
npm --no-git-tag-version version ${{github.event.release.name}}
19+
npm publish
20+
env:
21+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@leviy/webpack-config-default",
3-
"version": "3.1.0",
3+
"version": "0.0.0",
44
"repository": {
55
"type": "git",
66
"url": "git+ssh://git@github.com:leviy/webpack-config-default.git"

0 commit comments

Comments
 (0)