Skip to content

Commit

Permalink
attempt once moce
Browse files Browse the repository at this point in the history
  • Loading branch information
hellovai committed Jun 14, 2024
1 parent a4ed11d commit 3231efa
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ jobs:

# authz is managed via OIDC configured at https://pypi.org/manage/project/baml-py/settings/publishing/
# it is pinned to this github actions filename, so renaming this file is not safe!!
- name: Publish package to PyPI
if: ${{ !startsWith(github.ref, 'refs/tags/test-release') }}
uses: pypa/gh-action-pypi-publish@release/v1
# - name: Publish package to PyPI
# if: ${{ !startsWith(github.ref, 'refs/tags/test-release') }}
# uses: pypa/gh-action-pypi-publish@release/v1

publish-to-npm:
environment: release
Expand Down Expand Up @@ -246,6 +246,7 @@ jobs:
- uses: actions/download-artifact@v4
with:
pattern: bindings-*
path: engine/language_client_typescript/artifacts

- name: create npm dirs
run: pnpm napi create-npm-dirs
Expand All @@ -255,13 +256,13 @@ jobs:
run: pnpm artifacts
working-directory: engine/language_client_typescript

- name: Publish
if: ${{ !startsWith(github.ref, 'refs/tags/test-release') }}
run: |
npm publish --access public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Publish
# if: ${{ !startsWith(github.ref, 'refs/tags/test-release') }}
# run: |
# npm publish --access public
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

publish-vscode:
environment: release
Expand Down Expand Up @@ -304,11 +305,11 @@ jobs:
- name: Install Dependencies
run: pnpm install --frozen-lockfile
working-directory: typescript/
- name: Publish
if: ${{ !startsWith(github.ref, 'refs/tags/test-release') }}
run: |
pnpm run vscode:publish --pre-release --no-git-tag-version -p ${{ secrets.VSCODE_PAT }}
working-directory: typescript/vscode-ext/packages
# - name: Publish
# if: ${{ !startsWith(github.ref, 'refs/tags/test-release') }}
# run: |
# pnpm run vscode:publish --pre-release --no-git-tag-version -p ${{ secrets.VSCODE_PAT }}
# working-directory: typescript/vscode-ext/packages

release-github:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3231efa

Please sign in to comment.