Skip to content

[INIT] repo

[INIT] repo #1

Workflow file for this run

name: Release
on:
push:
branches:
- 'master'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Get package version
id: version
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"
- name: Publish to npm
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
npm publish --access public
- name: Create GitHub Release
uses: actions/create-release@v1
with:
tag_name: v${{ steps.version.outputs.version }}
release_name: Release vue2 easy toc version ${{ steps.version.outputs.version }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}