Skip to content

Bump actions/checkout from 3 to 4 #176

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #176

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@v4
- name: Set up Python
uses: actions/setup-python@v3
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'