Merge pull request #12254 from izaac/python_on_alpine_fix #50
Workflow file for this run
This file contains 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: Publish Shell Package | |
on: | |
push: | |
tags: | |
- 'shell-pkg-v*' | |
- 'creators-pkg-v*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Check Tags Version Matching | |
env: | |
TAG: ${{github.ref_name}} | |
run: ./.github/workflows/scripts/check-package-tag-version.sh | |
shell: bash | |
- name: Validate Plugin build system | |
run: ./shell/scripts/test-plugins-build.sh | |
shell: bash | |
# Reset the local (ci) repository state because | |
# The previous step (Validate Plugin build system) changes | |
# the version number on package.json for Shell in order | |
# to release it in verdaccio for it's tests | |
- name: Reset repository (file system) | |
run: | | |
git reset --hard HEAD | |
echo $NPM_REGISTRY | |
cat ./shell/package.json | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
registry-url: 'https://registry.npmjs.org' | |
scope: '@rancher' | |
- name: Install packages | |
run: yarn install --frozen-lockfile | |
- name: Publish Shell Package to npm | |
run: ./shell/scripts/publish-shell.sh --npm | |
env: | |
TAG: ${{github.ref_name}} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |