Skip to content

Commit

Permalink
fix(ci): publish flow
Browse files Browse the repository at this point in the history
  • Loading branch information
gorillamoe committed Feb 1, 2025
1 parent 2770213 commit de086b3
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 6 deletions.
35 changes: 32 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ jobs:
pkg/tree-sitter/grammar.js
pkg/tree-sitter/binding.gyp
pkg/tree-sitter/src/
pkg/tree-sitter-graphql/grammar.js
pkg/tree-sitter-graphql/binding.gyp
pkg/tree-sitter-graphql/src/
retention-days: 1
npm-publish-server:
name: Publish Server
Expand All @@ -63,8 +66,8 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --workspace @mistweaverco/kulala-ls
npm-publish-tree-sitter:
name: Publish Tree-sitter
npm-publish-tree-sitter-kulala:
name: "Publish Tree-sitter: kulala"
needs: build
runs-on: ubuntu-latest
steps:
Expand All @@ -84,4 +87,30 @@ jobs:
- name: Publish tree-sitter
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --workspace @mistweaverco/tree-sitter-kulala
run: |
npm publish --access public \
--workspace @mistweaverco/tree-sitter-kulala
npm-publish-tree-sitter-graphql:
name: "Publish Tree-sitter: graphql"
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"
- name: Download tree-sitter-build artifacts
uses: actions/download-artifact@v4
with:
name: tree_sitter_build
path: pkg/tree-sitter-graphql/
- name: Publish tree-sitter
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm publish --access public \
--workspace @mistweaverco/tree-sitter-graphql
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json.schemastore.org/package",
"name": "@mistweaverco/kulala",
"description": "A minimal language server for HTTP syntax.",
"version": "1.1.0",
"version": "1.2.0",
"private": true,
"scripts": {
"build": "npm-run-all build:*",
Expand Down
2 changes: 1 addition & 1 deletion pkg/server/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@mistweaverco/kulala-ls",
"description": "A minimal language server for HTTP syntax.",
"version": "1.1.0",
"version": "1.2.0",
"bin": {
"kulala-ls": "cli.js"
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/tree-sitter/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@mistweaverco/tree-sitter-kulala",
"description": "Kulala language grammar for Tree-sitter",
"version": "1.0.12",
"version": "1.2.0",
"homepage": "https://github.com/mistweaverco/kulala-ls",
"authors": [
"Marco Kellershoff <[email protected]>"
Expand Down

0 comments on commit de086b3

Please sign in to comment.