Skip to content

Update devDependencies. Use Pnpm #23

Update devDependencies. Use Pnpm

Update devDependencies. Use Pnpm #23

name: publish-to-github
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# Setup .npmrc file to publish to GitHub Packages
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "22.x"
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@javierbrea'
- name: Change package name
uses: MerthinTechnologies/edit-json-action@v1
with:
filename: './package.json'
key: 'name'
value: '@javierbrea/cypress-localstorage-commands'
- name: Install dependencies
run: pnpm install
- name: Publish package
run: pnpm -r publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}