You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Setup node and pnpm
v1.2.0
A composite Action for setting up Node and PNPM.
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v3
- name: setup node and pnpm
uses: dafnik/setup-node-pnpm@v1
with:
# PNPM version to install
pnpm: 8
# Node version to install
node: 18
# Changes pnpm-lock.yaml lookup location and the work directory of "pnpm install" if enabled
cwd: "."
# Runs "pnpm install" in working directory
install: false
# Runs "pnpm install --ingore-scripts" in working directory
# Enable "install" or "install-ignore-scripts" only once
# install-ignore-scripts: false
Furthermore see action.yml
Local testing is done with act
Run the test workflow:
act -j test
In order to release a new version of this action:
-
Locate the semantic version of the upcoming release (a draft is maintained by the
draft-release
workflow). -
Publish the draft release from the
main
branch with semantic version as the tag name, with the checkbox to publish to the GitHub Marketplace checked. ☑️ -
After publishing the release, the
release
workflow will automatically run to create/update the corresponding the major version tag such asv0
.⚠️ Environment approval is required. Check the Release workflow run list.
The scripts and documentation in this project are released under the MIT License.