diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml new file mode 100644 index 0000000..b1060c8 --- /dev/null +++ b/.github/workflows/npmpublish.yml @@ -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}} diff --git a/package.json b/package.json index 50b6a1d..0aa9ba8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@leviy/babel-preset-default", - "version": "2.0.3", + "version": "0.0.0", "repository": { "type": "git", "url": "git+ssh://git@github.com:leviy/babel-preset-default.git"