Skip to content

v0.2.1

v0.2.1 #5

Workflow file for this run

name: Publish NPM Package
on:
release:
types: [ published ]
jobs:
build_and_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
- name: Configure git user name and email
run: |
git config user.name "GoodWP Bot"
git config user.email "[email protected]"
- name: Install all npm packages
run: npm ci
# Building is automatically done by "prepare" npm script.
- name: Release package
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}