Skip to content

Commit 8730910

Browse files
committed
Test workflow
1 parent 793d107 commit 8730910

File tree

2 files changed

+95
-58
lines changed

2 files changed

+95
-58
lines changed
Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,58 @@
1-
name: Build and Publish Workflow
2-
3-
on:
4-
push:
5-
branches: [ master ]
6-
paths-ignore:
7-
- '.github/**'
8-
9-
jobs:
10-
build:
11-
runs-on: ubuntu-latest
12-
name: Npm install and npm build
13-
14-
steps:
15-
- uses: actions/checkout@v2
16-
17-
- name: Setup Node with Github Registry
18-
uses: actions/setup-node@v1
19-
with:
20-
node-version: '20'
21-
registry-url: https://npm.pkg.github.com/celonis
22-
scope: '@celonis'
23-
24-
- name: Yarn Install
25-
run: yarn install
26-
27-
- name: Yarn Build
28-
run: yarn build
29-
30-
- name: Yarn Test
31-
run: yarn test
32-
33-
- name: Move files to build
34-
run: |
35-
cp README.md dist/README.md
36-
cp LICENSE dist/LICENSE
37-
38-
- name: Publish to Github Registry
39-
env:
40-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
run: cd dist/ && npm publish
42-
43-
- name: Setup publish to Npm Registry
44-
uses: actions/setup-node@v1
45-
with:
46-
node-version: '16'
47-
registry-url: https://registry.npmjs.org/
48-
scope: '@celonis'
49-
50-
- name: Publish to Npm Registry
51-
env:
52-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
53-
run: cd dist/ && npm publish --access public
54-
55-
- uses: actions/checkout@master
56-
name: Checkout Master
57-
with:
58-
fetch-depth: '0'
1+
#name: Build and Publish Workflow
2+
#
3+
#on:
4+
# push:
5+
# branches: [ master ]
6+
# paths-ignore:
7+
# - '.github/**'
8+
#
9+
#jobs:
10+
# build:
11+
# runs-on: ubuntu-latest
12+
# name: Npm install and npm build
13+
#
14+
# steps:
15+
# - uses: actions/checkout@v2
16+
#
17+
# - name: Setup Node with Github Registry
18+
# uses: actions/setup-node@v1
19+
# with:
20+
# node-version: '20'
21+
# registry-url: https://npm.pkg.github.com/celonis
22+
# scope: '@celonis'
23+
#
24+
# - name: Yarn Install
25+
# run: yarn install
26+
#
27+
# - name: Yarn Build
28+
# run: yarn build
29+
#
30+
# - name: Yarn Test
31+
# run: yarn test
32+
#
33+
# - name: Move files to build
34+
# run: |
35+
# cp README.md dist/README.md
36+
# cp LICENSE dist/LICENSE
37+
#
38+
# - name: Publish to Github Registry
39+
# env:
40+
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
# run: cd dist/ && npm publish
42+
#
43+
# - name: Setup publish to Npm Registry
44+
# uses: actions/setup-node@v1
45+
# with:
46+
# node-version: '16'
47+
# registry-url: https://registry.npmjs.org/
48+
# scope: '@celonis'
49+
#
50+
# - name: Publish to Npm Registry
51+
# env:
52+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
53+
# run: cd dist/ && npm publish --access public
54+
#
55+
# - uses: actions/checkout@master
56+
# name: Checkout Master
57+
# with:
58+
# fetch-depth: '0'

.github/workflows/unpublish.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build and Publish Workflow
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
name: Npm install and npm build
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Setup Node with Github Registry
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: '20'
19+
registry-url: https://npm.pkg.github.com/celonis
20+
scope: '@celonis'
21+
22+
- name: Setup publish to Npm Registry
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: '16'
26+
registry-url: https://registry.npmjs.org/
27+
scope: '@celonis'
28+
29+
- name: Publish to Npm Registry
30+
env:
31+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32+
run: cd dist/ && npm unpublish @celonis/[email protected]
33+
34+
- uses: actions/checkout@master
35+
name: Checkout Master
36+
with:
37+
fetch-depth: '0'

0 commit comments

Comments
 (0)