Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekStride committed Aug 8, 2024
1 parent e97d2eb commit 11fb5a7
Showing 1 changed file with 4 additions and 33 deletions.
37 changes: 4 additions & 33 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,13 @@
name: Publish Packages
on:
release:
types: [published]
push:
branch: publish-fixes-test

jobs:
npm-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
cargo-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
args: --allow-dirty
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
pypi-publish:
uses: DerekStride/tree-sitter-workflows/.github/workflows/package-pypi.yml@rebuild-parser
uses: DerekStride/tree-sitter-workflows/.github/workflows/package-pypi.yml@test-rebuild
with:
python-version: 3.11
rebuild-parser: true
generate: true
secrets:
PYPI_API_TOKEN: ${{secrets.PYPI_API_TOKEN}}

0 comments on commit 11fb5a7

Please sign in to comment.