diff --git a/.github/workflows/beta-version.yml b/.github/workflows/beta-version.yml index 0fb6da3..db363a9 100644 --- a/.github/workflows/beta-version.yml +++ b/.github/workflows/beta-version.yml @@ -1,21 +1,26 @@ name: Build beta version on: - push: - branches: - - master + pull_request: + types: + - closed jobs: create-beta-version: runs-on: ubuntu-latest + if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'master' strategy: matrix: - node-version: [18.x, 20.x] + node-version: [20.x] steps: - name: Checkout repository uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: master + token: ${{ secrets.REPO_TOKEN }} - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 3db398b..ffb9d72 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: - node-version: [18.x, 20.x] + node-version: [20.x] steps: - name: Checkout repository