Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"access": "public",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't have any effects on security because we have scoped access on npm which can't be overridden.

"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@ on:

concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions:
id-token: write # Required for OIDC
contents: write
pull-requests: write
permissions: {}

jobs:
release:
if: github.repository == 'webpack/coffee-loader'
name: Release
runs-on: ubuntu-latest
# Must match the environment set on the npm trusted publisher for this package.
environment: npm
permissions:
id-token: write # mint the OIDC token npm exchanges for a short-lived publish token
contents: write # version commit, tags and GitHub releases
pull-requests: write # open/update the release pull request
outputs:
published: ${{ steps.changesets.outputs.published }}
publishedPackages: ${{ steps.changesets.outputs.publishedPackages }}
Expand All @@ -28,6 +31,12 @@ jobs:
with:
node-version: lts/*
cache: npm
registry-url: "https://registry.npmjs.org"

# OIDC token exchange needs npm >= 11.5.1 and `npm stage publish` needs
# npm >= 11.7.0, which is newer than the npm bundled with some Node LTS lines.
- name: Update npm
run: npm install -g npm@latest

- run: npm ci

Expand All @@ -37,7 +46,10 @@ jobs:
id: changesets
uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0
with:
publish: npx changeset publish
commit: "chore(release): new release"
title: "chore(release): new release"
# No NPM_TOKEN: authentication goes through the npm trusted publisher
# configured for this repository and workflow file.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading