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