ci: add todoist package #7
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
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: write | |
name: release-please | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
outputs: | |
is_release: ${{ steps.release.outputs.releases_created }} | |
steps: | |
- uses: google-github-actions/release-please-action@v4 | |
id: release | |
publish-npm-packages: | |
runs-on: ubuntu-latest | |
needs: release-please | |
# Only exec the publish action if a new release was created | |
if: needs.release-please.outputs.is_release == 'true' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: 'https://registry.npmjs.org' | |
- uses: pnpm/action-setup@v3 | |
name: Install pnpm | |
with: | |
version: 8 | |
- name: Install deps | |
run: pnpm i | |
- name: Build packages & type check | |
run: pnpm prepare-publish | |
- name: Publish packages to npm | |
run: pnpm publish -r | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |