Add moveApp command #57
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
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages | |
name: Node.js Package publish | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'next' | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
tags: | |
description: 'Testing node.js package publish workflow' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm ci | |
- run: npm test | |
publish-gpr: | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
registry-url: https://npm.pkg.github.com/ | |
- run: npm ci | |
- name: Check if version has been updated | |
id: check | |
uses: EndBug/version-check@v2 | |
with: | |
diff-search: true | |
- name: Log when changed | |
if: steps.check.outputs.changed == 'true' | |
run: 'echo "Version change found in commit ${{ steps.check.outputs.commit }}! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"' | |
- name: Log when unchanged | |
if: steps.check.outputs.changed == 'false' | |
run: 'echo "No version change :/"' | |
- run: npm publish --tag stable | |
if: ${{ steps.check.outputs.changed == 'true' && github.ref == 'refs/heads/master' }} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: npm publish --tag next | |
if: ${{ steps.check.outputs.changed == 'true' && github.ref == 'refs/heads/next' }} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: npm dist-tag add @fails-components/data@${{ steps.check.outputs.version }} latest | |
if: ${{ steps.check.outputs.changed == 'true' && github.ref == 'refs/heads/master' }} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: npm dist-tag add @fails-components/data@${{ steps.check.outputs.version }} latestunstable | |
if: ${{ steps.check.outputs.changed == 'true' && github.ref == 'refs/heads/next' }} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |