From 479879710bea24e8341cfafd85b88ba380a7522d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 9 Oct 2020 16:25:05 +0200 Subject: [PATCH] chore: migrate release to GitHub actions (#108) --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++ History.md => CHANGELOG.md | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/release.yml rename History.md => CHANGELOG.md (99%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..cd09a30a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +name: Release + +on: + push: + branches: + - master + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: GoogleCloudPlatform/release-please-action@v2.5.3 + id: release + with: + token: ${{ secrets.GITHUB_TOKEN }} + release-type: node + package-name: ml-matrix + bump-minor-pre-major: Yes + - uses: actions/checkout@v2 + # These if statements ensure that a publication only occurs when a new release is created + if: ${{ steps.release.outputs.release_created }} + - uses: actions/setup-node@v1 + with: + node-version: 14 + registry-url: 'https://registry.npmjs.org' + if: ${{ steps.release.outputs.release_created }} + - run: npm install + if: ${{ steps.release.outputs.release_created }} + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_BOT_TOKEN }} + if: ${{ steps.release.outputs.release_created }} diff --git a/History.md b/CHANGELOG.md similarity index 99% rename from History.md rename to CHANGELOG.md index 4e1f8fc6..bd74e53c 100644 --- a/History.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +# Changelog + ### [6.5.2](https://github.com/mljs/matrix/compare/v6.5.1...v6.5.2) (2020-10-09)