Skip to content

chore: rename other things #5

chore: rename other things

chore: rename other things #5

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions:
id-token: write # Required for OIDC
contents: write
pull-requests: write
jobs:
release:
if: github.repository == 'webpack/minimizer-webpack-plugin' || github.repository == 'webpack/terser-webpack-plugin'
name: Release
runs-on: ubuntu-latest
outputs:
published: ${{ steps.changesets.outputs.published }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Use Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: lts/*
cache: npm
- run: npm ci
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf # v1.7.0
with:
version: npm run version
publish: npm run release
commit: "chore(release): new release"
title: "chore(release): new release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: "" # https://github.com/changesets/changesets/issues/1152#issuecomment-3190884868
- name: Publish legacy alias to npm as terser-webpack-plugin
if: steps.changesets.outputs.published == 'true'
run: |
npm pkg set name=terser-webpack-plugin
npm publish --access public --provenance
npm pkg set name=minimizer-webpack-plugin
env:
NPM_TOKEN: "" # OIDC trusted publisher; both packages must be configured on npm