From 9ca2b2427d15c3a410d9fe9ddb86e85fdc55e9ac Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Thu, 7 Mar 2024 10:53:48 +0100 Subject: [PATCH] build: remove release action --- .github/workflows/release.yml | 84 ----------------------------------- 1 file changed, 84 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index b6b1c9a7ca..0000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,84 +0,0 @@ -name: Release - -on: - push: - tags: ['v[0-9]+.[0-9]+.[0-9]+'] - -jobs: - build: - uses: ./.github/workflows/build.yml - - npm: - needs: - - build - runs-on: ubuntu-latest - permissions: - id-token: write - strategy: - fail-fast: false - matrix: - prepare-script: - - browser - - node-cjs - - node-esm - - universal - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Setup node - uses: actions/setup-node@v3 - with: - node-version: lts/hydrogen # 18 - registry-url: https://registry.npmjs.org - always-auth: true - - name: Load cached dist - uses: actions/cache@v3 - id: dist - with: - path: dist - key: dist-${{ hashFiles('src/**/*.ts', 'tsconfig/*.json', '.github/workflows/*.yml', 'package-lock.json') }} - fail-on-cache-miss: true - - name: Prepare distribution - run: node tools/publish-${{ matrix.prepare-script }} - - run: npm publish --provenance - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - cleanup: - needs: - - npm - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - run: git push origin $GITHUB_SHA:v4.x - - run: git rm -r dist - - run: | - git config --local user.name "github-actions[bot]" - git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" - git commit -m "chore: cleanup after release" - - run: git push origin HEAD:main - - github: - needs: - - npm - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 2 - - name: Setup node - uses: actions/setup-node@v3 - with: - node-version: lts/hydrogen # 18 - cache: 'npm' - - run: node tools/release-notes - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}