chore: bump version to 0.83.1 #73
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: Release NU to NPM | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
jobs: | |
publish-npm-binaries: | |
name: Publish NPM packages | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set the release version | |
shell: bash | |
run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV | |
- name: Install node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
registry-url: 'https://registry.npmjs.org' | |
- uses: hustcer/setup-nu@v3 | |
with: | |
version: 0.78 | |
- name: Publish to NPM | |
run: nu nu/npm.nu each | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
publish-npm-base: | |
name: Publish the base NPM package | |
needs: publish-npm-binaries | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set the release version | |
shell: bash | |
run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV | |
- name: Install node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
registry-url: 'https://registry.npmjs.org' | |
- uses: hustcer/setup-nu@v3 | |
with: | |
version: 0.78 | |
- name: Publish the base package | |
continue-on-error: true | |
shell: nu {0} | |
run: nu nu/npm.nu base | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
test-npm-pkg: | |
needs: publish-npm-base | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
name: Test Nu@npm on x64-${{matrix.os}} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set the release version | |
shell: bash | |
run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV | |
- name: Install node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Test Nu Install from NPM Registry | |
shell: bash | |
run: | | |
echo "Installing Nu@$RELEASE_VERSION from npm..." | |
npm i --location=global "nushell@$RELEASE_VERSION" --registry https://registry.npmjs.org | |
echo 'Nu version info:'; nu -c 'version' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |