Files
wxt/.github/workflows/release.yml
T
2025-10-12 21:53:28 -05:00

84 lines
2.1 KiB
YAML

name: 🚀 Release
on:
workflow_dispatch:
inputs:
package:
description: Package to release
default: wxt
type: choice
options:
- analytics
- auto-icons
- i18n
- module-react
- module-solid
- module-svelte
- module-vue
- runner
- storage
- unocss
- webextension-polyfill
- wxt
permissions:
contents: read
jobs:
# validate:
# name: Validate
# uses: './.github/workflows/validate.yml'
# secrets: inherit
publish:
name: Publish
runs-on: ubuntu-24.04
permissions:
contents: write # Push version changes
id-token: write # OIDC for NPM publishing
# needs:
# - validate
steps:
- name: Checkout
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
with:
fetch-depth: 0
ssh-key: ${{ secrets.DEPLOY_KEY }} # https://github.com/sbellone/release-workflow-example
- name: Setup
uses: ./.github/actions/setup
- name: Update NPM
run: sudo npm i -g npm@latest
- name: Which NPM
run: |
echo 'all'
which -a npm
echo 'selected'
which npm
- name: Print NPM Version
run: npm --version
# Disabled until the right version of NPM is installed
# - name: Configure Git
# run: |
# git config user.name 'github-actions[bot]'
# git config user.email 'github-actions[bot]@users.noreply.github.com'
# git config --global push.followTags true
#
# - name: Bump and Tag
# run: |
# pnpm tsx scripts/bump-package-version.ts ${{ inputs.package }}
# git push
# git push --tags
#
# - name: Publish to NPM
# working-directory: packages/${{ inputs.package }}
# run: npm publish
#
# - name: Create GitHub release
# run: pnpm tsx scripts/create-github-release.ts ${{ inputs.package }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}