Skip to content

correct release working dir #98

correct release working dir

correct release working dir #98

Workflow file for this run

name: 'Release npm packages'
on:
push:
branches: [trunk]
jobs:
release:
permissions:
actions: read
checks: read
contents: write
deployments: read
issues: read
discussions: read
packages: read
pages: read
pull-requests: read
repository-projects: read
security-events: read
statuses: read
runs-on: ubuntu-latest
if: github.repository == 'seleniumhq/selenium-ide'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install pnpm
run: npm i -g pnpm
- name: Install dependencies
run: pnpm -r i
- name: Build all JS
run: pnpm run build
env:
NODE_ENV: "production"
- name: Clear dependencies
run: npm run clean:deps
- name: Install prod dependencies only
run: pnpm -r i
env:
NODE_ENV: "production"
- name: Publish packages to npm
run: pnpm -r publish --no-git-checks --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}