Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use release-please #280

Merged
merged 1 commit into from
Jan 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/babelify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: babelify
on:
# Workaround for syncing browser/gotrue.js on release-please PRs
push:
branches:
- release-*
jobs:
babelify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 15
- run: npm run babelify
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'chore: sync browser/gotrue.js'
17 changes: 17 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: release-please
on:
push:
branches:
- master
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
id: release
with:
# We can't rely on the GITHUB_TOKEN as we need to trigger
# further actions and the GITHUB_TOKEN doesn't allow it
token: ${{ secrets.NODE_PKG_RELEASE_TOKEN }}
release-type: node
package-name: 'gotrue-js'
20 changes: 3 additions & 17 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
# Release Checklist
# Releasing

Make sure you have npm + git credentials set up.

- [ ] Make changes and/or merge PRs.
- [ ] `git checkout master`
- [ ] `git pull`
- [ ] Set up semantic release environment variables:

```bash
export GIT_AUTHOR_NAME=<your-github-login>
export GIT_AUTHOR_EMAIL=<your-github-email>
export GIT_COMMITTER_NAME=<your-github-login>
export GIT_COMMITTER_EMAIL=<your-github-email>
export GITHUB_TOKEN=<github-token-with-public_repo-permissions>
```

- [ ] `npm run release`
1. Merge the release PR
2. Publish the package `npm publish`
Loading