Revert "feat: yml支持job镜像配置&修复cfs找不到挂载点问题 (#296)" (#297) #295
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: [master] | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Install Node.js and npm | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
registry-url: https://registry.npmjs.org | |
- name: Retrieve dependencies from cache | |
id: cacheNpm | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.npm | |
node_modules | |
key: npm-v14-${{ runner.os }}-refs/heads/master-${{ hashFiles('package.json') }} | |
restore-keys: npm-v14-${{ runner.os }}-refs/heads/master- | |
- name: Install dependencies | |
if: steps.cacheNpm.outputs.cache-hit != 'true' | |
run: | | |
npm ci | |
- name: Build | |
run: npm run build | |
- name: Releasing | |
run: | | |
npm run release | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
GIT_AUTHOR_NAME: slsplus | |
GIT_AUTHOR_EMAIL: slsplus.sz@gmail.com | |
GIT_COMMITTER_NAME: slsplus | |
GIT_COMMITTER_EMAIL: slsplus.sz@gmail.com |