Skip to content

Set registry-url in node-setup step #4

Set registry-url in node-setup step

Set registry-url in node-setup step #4

Workflow file for this run

on:
push:
branches: [experience-cs]
workflow_dispatch:
permissions:
contents: write
packages: write
jobs:
foo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-node@26961cf329f22f6837d5f54c3efd76b480300ace # v4
with:
registry-url: 'https://npm.pkg.github.com'
- run: |
mkdir -p build
mkdir -p dist
- name: Publish to GitHub Packages
if: github.ref == 'refs/heads/experience-cs'
run: |
RELEASE_VERSION="0.1.0-raspberrypifoundation.$(date +'%Y%m%d%H%M%S')"
npm version --no-git-tag-version $RELEASE_VERSION
npm publish --access public --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}