Skip to content

1.9.0

1.9.0 #25

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: Publish
on:
push:
tags:
- '*'
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
environment:
name: npm
url: https://www.npmjs.com/package/@wp-hooks/wordpress-core
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nodejs
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: npm
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: npm ci
- name: Publish package
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}