Skip to content

Commit

Permalink
GitHub workflow action added to automate publishing the package to th…
Browse files Browse the repository at this point in the history
…e registry
  • Loading branch information
denniscoorn committed Nov 7, 2019
1 parent 8a36bc5 commit 5cb789b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish package

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@leviy'
- run: |
npm --no-git-tag-version version ${{github.event.release.name}}
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leviy/babel-preset-default",
"version": "2.0.3",
"version": "0.0.0",
"repository": {
"type": "git",
"url": "git+ssh://[email protected]:leviy/babel-preset-default.git"
Expand Down

0 comments on commit 5cb789b

Please sign in to comment.