test: fix snapshot #431
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: Deploy Package CD | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
env: | |
rid: ${{ github.run_id }}-${{ github.run_number }} | |
jobs: | |
initialize: | |
name: Initialize | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v4 | |
- name: Setup Environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install Dependencies | |
run: yarn | |
- name: Cache Dependencies | |
uses: actions/cache@v2 | |
with: | |
path: node_modules/ | |
key: node-modules-${{ runner.os }}-${{ env.rid }} | |
deploy-package: | |
name: Deploy - Package | |
needs: initialize | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v4 | |
- name: Setup Environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Uncache Dependencies | |
uses: actions/cache@v2 | |
with: | |
path: node_modules/ | |
key: node-modules-${{ runner.os }}-${{ env.rid }} | |
- name: Deploy Package | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.MRV2_NPM_TOKEN }} | |
run: yarn ci:publish |