Skip to content

Support ES6 and TS

Support ES6 and TS #3

Workflow file for this run

name: Publish
on:
- push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- "20"
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: npm i
- name: Check syntax
run: npm run format
- name: Add NPM token
if: github.ref == 'refs/heads/main'
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build and Publish
if: github.ref == 'refs/heads/main'
run: npx @lets/publish