Skip to content

Fix/#3

Fix/#3 #29

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: ["main", "beta", "alpha"]
pull_request:
branches: ["main", "beta", "alpha"]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Show env
run: |
echo $RELEASE_VERSION
echo ${{ env.GOOGLE_CLIENT_ID }}
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: borales/actions-yarn@v3.0.0
with:
cmd: install
- run: npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
- run: yarn build
- run: yarn release
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# cache: "npm"
# - run: npm ci
# - run: npm run build-prod --if-present
# - run: npm run release