Skip to content

Bump actions/setup-python from 3 to 5 #173

Bump actions/setup-python from 3 to 5

Bump actions/setup-python from 3 to 5 #173

Workflow file for this run

name: Publish Package to npmjs
on:
push:
pull_request:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: python -m pip install -r requirements.txt
- run: python generator.py
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
if: github.event_name == 'release'
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: github.event_name == 'release'