update deps #88
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: Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # gives semantic-release access to all previous commits | |
token: ${{ secrets.GH_TOKEN }} # admin token | |
- name: Cache node_modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.OS }}-${{ env.cache-name }}- | |
${{ runner.OS }}- | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.15.0 | |
- name: Install dependencies | |
run: yarn | |
# - name: Compile TS => JS | |
# run: yarn build | |
- name: Package code | |
run: yarn package | |
# - name: Bundle code | |
# uses: tool3/ncc@master | |
# with: | |
# github_token: ${{ secrets.GH_TOKEN }} | |
# src: 'src/index.ts' | |
# branch: 'main' | |
# ncc_args: '--source-map, --license, licenses.txt' | |
# - name: Upload artifact | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: dist | |
# path: dist/ | |
- name: Commit dist | |
uses: EndBug/add-and-commit@v9 | |
with: | |
default_author: github_actions | |
message: 'Commiting for release' | |
- name: Cut release | |
run: yarn release | |
# white space | |