Merge pull request #100 from mubaidr/dependabot/npm_and_yarn/vite-5.4.10 #103
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
branches: | |
- master | |
concurrency: | |
group: release-${{ github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
draft_release: | |
permissions: | |
contents: write # Allows this job to create releases | |
strategy: | |
fail-fast: true | |
matrix: | |
# os: [macos-latest, ubuntu-latest, windows-latest] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: latest | |
- run: pnpm install --no-frozen-lockfile | |
env: | |
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | |
- name: Get Package Version | |
id: get-version | |
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_ENV | |
- run: pnpm build | |
- run: zip -r ${{ env.version }}.zip dist | |
- name: GH Release | |
uses: softprops/[email protected] | |
with: | |
tag_name: ${{ env.version }} | |
name: ${{ env.version }} | |
draft: true | |
files: ${{ env.version }}.zip |