Skip to content

Commit

Permalink
Add Node publishing step.
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaelsavafi-keap committed Jan 29, 2025
1 parent 956044b commit 33beb0f
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 7 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/npmjs_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish Node Package to npmjs
on:
release:
types: [published]

jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
secrets: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

# Javascript
- name: Install Javascript dependencies
working-directory: sdks/core/javascript
run: npm ci

- name: Publish Core Javascript package to npmjs
run: npm publish --provenance --access public
working-directory: sdks/core/javascript
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# Typescript
- name: Install Typescript dependencies
working-directory: sdks/core/typescript
run: npm ci

- name: Publish Core Typescript package to npmjs
run: npm publish --provenance --access public
working-directory: sdks/core/typescript
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
15 changes: 8 additions & 7 deletions .github/workflows/python_publish.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
name: Publish Python Package
name: Publish Python Package to PyPI

on:
release:
types: [created]
types: [published]

jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
secrets: read

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'

Expand Down

0 comments on commit 33beb0f

Please sign in to comment.