fix: replace redkubes and otomi with linode and apl #54
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: Build and publish npm packages | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '*' | |
jobs: | |
check-build-push-clients: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 2 | |
- name: Check for changes | |
id: vars | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc | |
if bin/unpublished-exists.sh; then | |
echo 'Changes found, continuing with next step.' | |
echo '::set-output name=diff::1' | |
else | |
echo 'No changes found, skipping!' | |
echo '::set-output name=diff::0' | |
fi | |
- uses: actions/setup-node@v2 | |
if: steps.vars.outputs.diff == 1 | |
with: | |
node-version: '14' | |
registry-url: 'https://npm.pkg.github.com' | |
scope: '@linode' | |
- name: Build and publish clients | |
if: steps.vars.outputs.diff == 1 | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
bin/generate-all.sh | |
bin/release-all.sh |