From c1c89fd2831e5cebb515a0e2d00896169261399e Mon Sep 17 00:00:00 2001 From: Pringgo Radianto Date: Mon, 12 Aug 2024 13:43:00 +0700 Subject: [PATCH] ci: add release ci/cd --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..0058fae --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +name: release + +on: + push: + branches: + - main + +permissions: {} + +jobs: + release: + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - uses: actions/checkout@4 + - run: corepack enable + - uses: actions/setup-node@4 + with: + node-version: 20 + + - name: Install dependencies + run: yarn install + + - name: Prepare build environment + run: yarn dev:prepare + + - name: nightly release + run: yarn changelogen --release --publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} + NPM_CONFIG_PROVENANCE: true