2023-12-28 10:43:11 +00:00
|
|
|
name: Release Please
|
|
|
|
|
2023-07-10 02:28:41 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release-please:
|
|
|
|
runs-on: ubuntu-latest
|
2023-12-28 10:43:11 +00:00
|
|
|
permissions:
|
|
|
|
pull-requests: write
|
2023-07-10 02:28:41 +00:00
|
|
|
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 }}
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
id-token: write
|
|
|
|
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
|