chore: lots more progress #41
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Release' | ||
|
Check failure on line 1 in .github/workflows/publish-npm.yml
|
||
| description: 'Releases a package' | ||
| inputs: | ||
| scope: | ||
| description: 'The package to release. Must match a package specified in lerna.json.' | ||
| tag: | ||
| description: 'The tag to publish to on NPM (DRY RUN).' | ||
| preid: | ||
| description: 'The prerelease identifier used when doing a prerelease.' | ||
| working-directory: | ||
| required: true | ||
| description: 'The directory of the package to deploy.' | ||
| node-version: | ||
| description: 'Node.js version to use for publishing.' | ||
| required: false | ||
| default: '20.10.0' | ||
| registry-url: | ||
| description: 'Registry URL to publish to.' | ||
| required: false | ||
| default: 'https://registry.npmjs.org' | ||
| runs: | ||
| using: 'composite' | ||
| steps: | ||
| - name: 📦 Install pnpm | ||
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 | ||
| - name: 🟢 Use Node | ||
| uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 | ||
| with: | ||
| node-version: ${{ inputs.node-version }} | ||
| cache: 'pnpm' | ||
| registry-url: ${{ inputs.registry-url }} | ||
| scope: '@stencil' | ||
| - name: 🔄 Ensure Latest npm | ||
| run: npm install -g npm@latest | ||
| shell: bash | ||
| - name: Install Dependencies | ||
| run: pnpm --filter ${{ inputs.scope }} install | ||
| shell: bash | ||
| working-directory: ${{ inputs.working-directory }} | ||
| - name: 🏗️ Run Build | ||
| run: pnpm run build | ||
| shell: bash | ||
| working-directory: ${{ inputs.working-directory }} | ||
| - name: 🚀 Publish to NPM | ||
| run: npm publish --tag ${{ inputs.tag }} --provenance | ||
| shell: bash | ||
| working-directory: ${{ inputs.working-directory }} | ||