-
-
Notifications
You must be signed in to change notification settings - Fork 39
49 lines (41 loc) · 1.24 KB
/
release-please.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Release Please
on:
push:
branches: [main]
jobs:
release-please:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- 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
with:
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
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- 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