Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/wojtekmaj/react-async-button. A button that handles Promises for your React app.
Something went wrong. Try again.
1.1 kB · 45 lines
YAML
at main
12345678910111213141516171819202122232425262728293031323334353637383940414243444546name: Publish
on: release: types: [published]
env: HUSKY: 0
permissions: id-token: write
jobs: publish: name: Publish runs-on: ubuntu-24.04-arm
steps: - name: Checkout uses: actions/checkout@v6
# ⚠️ Do not cache dependencies in publish workflows # Restoring package-manager cache here increases the risk of a compromised release
- name: Use Node.js uses: actions/setup-node@v6 with: node-version: '24' registry-url: 'https://registry.npmjs.org'
- name: Install Corepack run: npm install -g corepack
- name: Install dependencies run: yarn --immutable
- name: Publish with latest tag if: github.event.release.prerelease == false run: yarn npm publish --tag latest working-directory: packages/react-async-button
- name: Publish with next tag if: github.event.release.prerelease == true run: yarn npm publish --tag next working-directory: packages/react-async-button