Skip to content

Commit

Permalink
Fix publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
mthenw committed Feb 3, 2020
1 parent 9e6e7ee commit 2b3a64d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
- run: npm install
- run: npm test
- run: npm run lint
- run: npm publish --@mthenw:registry=https://registry.npmjs.org/
if: startsWith(github.event.ref, 'refs/tags')
- uses: primer/publish@master
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_REGISTRY_URL: registry.npmjs.org
12 changes: 3 additions & 9 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,13 @@ After all [pull requests](https://github.com/mthenw/frontail/pulls) for a releas
$ git commit -am "Release <version>"
```

1. Tag the version.
1. Push the commit.

```sh
$ git tag v<version>
$ git push origin head
```

1. Push the commit and tag.

```sh
$ git push origin head --tags
```

1. Travis CI will publish new version to NPM.
1. GitHub action will publish new version to NPM and push new tag.

1. Publish new release on GitHub with [`release`](https://github.com/zeit/release) package.

Expand Down

0 comments on commit 2b3a64d

Please sign in to comment.