Skip to content

v2.21.0

v2.21.0 #34

Workflow file for this run

name: Upload NPM Package
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install
- name: Release
run: npm run release
env:
NODE_OPTIONS: "--max_old_space_size=4096"
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
- name: Archive build artifacts
uses: actions/upload-artifact@v3
with:
name: package.zip
retention-days: 7
path: |
dist