From f9ac6409659fc9d317a49fc1d0eac875d27f4944 Mon Sep 17 00:00:00 2001 From: Brett <12437916+colbr@users.noreply.github.com> Date: Fri, 8 Dec 2023 15:42:48 +1300 Subject: [PATCH] ci: publish workflow --- .github/release.yml | 13 +++++++++++++ .github/workflows/publish.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .github/release.yml create mode 100644 .github/workflows/publish.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..dfc7dac --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,13 @@ +# .github/release.yml + +changelog: + categories: + - title: 🏕 Features + labels: + - '*' + exclude: + labels: + - dependencies + - title: 👒 Dependencies + labels: + - dependencies diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..8e89079 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +name: Tagged Release +on: + push: + tags: + - 'v*' +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version-file: '.nvmrc' + - run: echo '//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}' >> .npmrc + - run: npm i + - run: npm run test + - run: npm run build + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: false