-
-
Notifications
You must be signed in to change notification settings - Fork 7
54 lines (44 loc) · 1.18 KB
/
deploy.yml
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
49
50
51
52
53
54
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: Publish
on:
push:
tags:
- '*'
permissions:
contents: read
jobs:
publish-wp-json-schemas:
runs-on: ubuntu-latest
environment:
name: wp-json-schemas
url: https://www.npmjs.com/package/wp-json-schemas
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish-wp-types:
runs-on: ubuntu-latest
environment:
name: wp-types
url: https://www.npmjs.com/package/wp-types
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: https://registry.npmjs.org/
- name: Deploy to npm
run: |
cd packages/wp-types
npm install
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}