forked from RapidAPI/httpsnippet
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.24 KB
/
npmpublish.yml
File metadata and controls
48 lines (41 loc) · 1.24 KB
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
41
42
43
44
45
46
47
48
name: Publish HttpSnippet Package
on:
push:
branches:
- master
paths-ignore:
- "package.json"
- "**.md"
jobs:
publish-package:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install node 14
uses: actions/setup-node@v2
with:
node-version: 14.x
registry-url: "https://npm.pkg.github.com"
scope: "@rapidapi"
- name: Install root dependencies
run: yarn --no-progress --non-interactive --frozen-lockfile
- name: Checkout GitHub Actions
uses: actions/checkout@v2
with:
repository: RapidAPI/rapidapi-github-actions
ref: master
token: ${{ secrets.ACTIONS_ACCESS_KEY }}
path: .github/actions
- name: Create GitHub Release
uses: ./.github/actions/create-github-release
with:
github_head_ref: ${{ (github.head_ref) }}
github_base_ref: ${{ (github.base_ref) }}
ACTIONS_ACCESS_KEY: ${{ (secrets.ACTIONS_ACCESS_KEY) }}
- name: Publish HttpSnippet Package
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.ACTIONS_ACCESS_KEY}}