UNPKG

remark-torchlight

Version:

A remark plugin for Torchlight - the syntax highlighting API.

26 lines (21 loc) 571 B
name: Publish to NPM on: release: types: [ created ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v3 with: node-version: 14 registry-url: 'https://registry.npmjs.org' - name: Install dependencies run: npm install - name: Inject version run: echo "PACKAGE_VERSION=$(git describe --tags)" >> $GITHUB_ENV - name: Publish to NPM run: npm run release:prod env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}