Skip to content

Commit

Permalink
Automatically publish package
Browse files Browse the repository at this point in the history
  • Loading branch information
openint-bot committed Jan 9, 2025
1 parent 0e05de4 commit ddef151
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/validate-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Validate

# Ideally there should be a way to run this workflow on every push to any branch
# but not on branch associated with a pull request to avoid doubling the work unnecessarily.
# But we don't know how to do that in github actions so falling back to only running on
# But we don't know how to do that in github actions so falling back to only running on
# main and production branches and explicit pull requests for now.
on:
push: {branches: [main, production]}
Expand All @@ -13,6 +13,8 @@ jobs:
name: Run type checks, lint, and tests
runs-on: ubuntu-latest
timeout-minutes: 15
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -69,6 +71,9 @@ jobs:
- name: Run integration tests
run: cd examples && node test.cjs && node test.mjs

- name: Publish package
run: pnpm publish # Should use the NPM_TOKEN env variable automatically

# TODO: Add step to publish package here would be nice

- name: Send Slack notification for job status
Expand Down

0 comments on commit ddef151

Please sign in to comment.