Skip to content

v3.3.2

v3.3.2 #14

Workflow file for this run

name: Publish
on:
release:
types: [published]
jobs:
publish-npm:
name: Publish to npm
if: github.event_name == 'release'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v7.0.1
with:
ref: ${{ github.event.release.tag_name }}
- name: Use Node.js
uses: actions/setup-node@v7.0.0
with:
node-version: "24.x"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
- name: Publish to npm
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish-pypi:
name: Publish to PyPI
if: github.event_name == 'release'
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/searchfetch
permissions:
id-token: write
steps:
- uses: actions/checkout@v7.0.1
with:
ref: ${{ github.event.release.tag_name }}
- name: Set up Python
uses: actions/setup-python@v7.0.0
with:
python-version: "3.14"
- name: Install build tool
run: python -m pip install build
- name: Build a binary wheel and a source tarball
run: python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@v1.14.1