look for outputs #4
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: Snapshot Releasing | |
on: | |
push: | |
branches: | |
- "changesets/**" | |
- chore/auto-snap-release | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
env: | |
ACTIONS_STEP_DEBUG: true | |
jobs: | |
release: | |
name: Snapshot Release | |
runs-on: ['self-hosted', 'org', 'npm-publish'] | |
permissions: | |
contents: write | |
id-token: write | |
pull-requests: write | |
repository-projects: write | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Akeyless Get Secrets | |
id: get_auth_token | |
uses: | |
docker://us-west1-docker.pkg.dev/devopsre/akeyless-public/akeyless-action:latest | |
with: | |
api-url: https://api.gateway.akeyless.celo-networks-dev.org | |
access-id: p-kf9vjzruht6l | |
static-secrets: '{"/static-secrets/apps-tooling-circle/npm-publish-token":"NPM_TOKEN"}' | |
- name: Setup Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: 'Setup yarn' | |
shell: bash | |
run: | | |
npm install --global yarn | |
source ~/.bashrc | |
- name: Install Dependencies | |
shell: bash | |
run: yarn | |
- name: Build packages | |
shell: bash | |
run: yarn build | |
- name: Version packages | |
id: 'versioning' | |
run: yarn version --snapshot alpha | |
- name: Publish packages | |
run: yarn cs publish --tag alpha --no-git-tag | |
outputs: | |
packages: ${{ steps.versioning.outputs }} | |
install: | |
name: Install Snapshot Releases | |
needs: ['release'] | |
runs-on: ['self-hosted', 'org', 'npm-publish'] | |
steps: | |
- run: echo ${{needs.release.outputs.packages}} |