FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
create-html5-boilerplate/.github/workflows/release.yml at master · javascriptit/create-html5-boilerplate · GitHub
javascriptit
create-html5-boilerplate
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
create-html5-boilerplate
/
.github
/
workflows
/
release.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
40 lines (36 loc) · 1.11 KB
Breadcrumbs
create-html5-boilerplate
/
.github
/
workflows
/
release.yml
Copy path
File metadata and controls
40 lines (36 loc) · 1.11 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
#
For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name
:
Release
on
:
push
:
branches
:
-
master
-
next
jobs
:
release
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Get npm cache directory
id
:
npm-cache
run
:
|
echo "::set-output name=dir::$(npm config get cache)"
-
uses
:
actions/cache@v2
with
:
path
:
${{ steps.npm-cache.outputs.dir }}
key
:
${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys
:
|
${{ runner.os }}-node-
-
uses
:
actions/checkout@v2
-
name
:
Setup Node.js
uses
:
actions/setup-node@v2
with
:
node-version
:
'
lts/*
'
-
name
:
Install dependencies
run
:
npm ci
-
name
:
Test
run
:
npm test
-
name
:
Release 🚀
env
:
NPM_TOKEN
:
${{ secrets.NPM_TOKEN }}
GH_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
run
:
npx semantic-release
Back
|
FazBrowse Home
|
New Git URL