Skip to content

Commit

Permalink
build: use release-please action (#1736)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Sep 6, 2020
1 parent 4151fee commit d360577
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/publish.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Expand Up @@ -3,6 +3,7 @@ on:
branches:
- master
pull_request:
types: [ assigned, opened, synchronize, reopened, labeled ]
name: ci
jobs:
test:
Expand Down
32 changes: 31 additions & 1 deletion .github/workflows/release-please.yml
Expand Up @@ -7,8 +7,38 @@ jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: bcoe/release-please-action@v1.0.1
- uses: bcoe/release-please-action@v2.1.1
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: yargs
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- run: npm install
- run: npm run compile
- name: push Deno release
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN}}@github.com/yargs/yargs.git"
git checkout -b deno
git add -f build
git commit -a -m 'chore: ${{ steps.release.outputs.tag_name }} release'
git push origin +deno
git tag -a ${{ steps.release.outputs.tag_name }}-deno -m 'chore: ${{ steps.release.outputs.tag_name }} release'
git push origin ${{ steps.release.outputs.tag_name }}-deno
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v1
with:
node-version: 14
registry-url: 'https://external-dot-oss-automation.appspot.com/'
if: ${{ steps.release.outputs.release_created }}
- run: npm install
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}

0 comments on commit d360577

Please sign in to comment.