Skip to content

Commit

Permalink
ci: improve consistency and security of the release workflow (#1907)
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinnot committed Feb 16, 2020
1 parent d5e4062 commit 29eed05
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 23 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/continuous-delivery.yaml
@@ -0,0 +1,37 @@
name: Continuous Delivery

on:
push:
branches:
- '*.x' # maintenance releases such as 15.x
- beta
- master
- next

jobs:
build:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Cache npm dependencies
uses: actions/cache@v1
with:
key: npm-${{ hashFiles('package-lock.json') }}
path: ~/.npm
restore-keys: |
npm-
- name: Install dependencies
run: npm ci --ignore-scripts --no-audit --no-progress --prefer-offline
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
name: Release
run: npx semantic-release
23 changes: 0 additions & 23 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 29eed05

Please sign in to comment.