catppuccin-palette/.github/workflows/release-please.yml

50 lines
1.2 KiB
YAML
Raw Normal View History

2023-12-28 10:43:11 +00:00
name: Release Please
2023-07-10 02:28:41 +00:00
on:
push:
branches: [main]
2023-12-28 10:47:40 +00:00
permissions:
contents: write
id-token: write
pull-requests: write
2023-07-10 02:28:41 +00:00
jobs:
release-please:
runs-on: ubuntu-latest
steps:
2023-12-28 10:43:11 +00:00
- uses: google-github-actions/release-please-action@v4
id: release
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
release:
runs-on: ubuntu-latest
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
steps:
- uses: actions/checkout@v4
- uses: nekowinston/setup-deno@v1
- uses: actions/setup-node@v3
2023-07-10 02:28:41 +00:00
with:
2023-12-28 10:43:11 +00:00
node-version: "lts/*"
cache: "npm"
registry-url: "https://registry.npmjs.org"
- name: Build
run: deno task build
- name: Publish NPM package
working-directory: dist/npm
run: npm publish --provenance --access public
2023-07-10 02:28:41 +00:00
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2023-12-28 10:43:11 +00:00
- name: Upload the palette files
run: |
tar czf catppuccin.tar.gz --directory=dist/palettes/ .
gh release upload ${{ needs.release-please.outputs.tag_name }} catppuccin.tar --clobber