feat: upgrade (eslint 9, react 19, vite 6, date-fns 4, extract-colors… #49
Workflow file for this run
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: publish | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: 'latest' | |
- name: get semantic release info | |
run: echo new_release_version=${GITHUB_REF:11} >> $GITHUB_ENV | |
- name: get manifest version | |
id: manifest | |
uses: notiz-dev/github-action-json-property@release | |
with: | |
path: 'manifest.json' | |
prop_path: 'version' | |
- name: check manifest version | |
if: ${{ steps.manifest.outputs.prop != env.new_release_version }} | |
run: | | |
echo "invalid manifest version, expected: ${{env.new_release_version}}, got: ${{steps.manifest.outputs.prop}}" | |
exit 1 | |
- name: get package version | |
id: package | |
uses: notiz-dev/github-action-json-property@release | |
with: | |
path: 'package.json' | |
prop_path: 'version' | |
- name: check package version | |
if: ${{ steps.package.outputs.prop != env.new_release_version }} | |
run: | | |
echo "invalid package version, expected: ${{env.new_release_version}}, got: ${{steps.package.outputs.prop}}" | |
exit 1 | |
- run: bun install --no-save | |
- run: bun run setup-ci | |
- name: update env.json pocketKey | |
uses: jossef/[email protected] | |
with: | |
file: src/env.json | |
field: pocketKey | |
value: '${{ secrets.POCKET_KEY }}' | |
- run: bun run build | |
- run: bun run zip | |
- name: upload | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: pile.zip | |
tag: ${{ github.ref }} |