Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/build-and-publish-automatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build and Publish Workflow

on:
push:
branches: [ master ]
paths-ignore:
- '.github/**'

jobs:
build:
runs-on: ubuntu-latest
name: Npm install and npm build

steps:
- uses: actions/checkout@v2

- name: Setup Node with Github Registry
uses: actions/setup-node@v1
with:
node-version: '20'
registry-url: https://npm.pkg.github.com/celonis
scope: '@celonis'

- name: Yarn Install
run: yarn install

- name: Yarn Build
run: yarn build

- name: Yarn Test
run: yarn test

- name: Move files to build
run: |
cp README.md dist/README.md
cp LICENSE dist/LICENSE

- name: Publish to Github Registry
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cd dist/ && npm publish

- name: Setup publish to Npm Registry
uses: actions/setup-node@v1
with:
node-version: '16'
registry-url: https://registry.npmjs.org/
scope: '@celonis'

- name: Publish to Npm Registry
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: cd dist/ && npm publish --access public

- uses: actions/checkout@master
name: Checkout Master
with:
fetch-depth: '0'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@celonis/content-cli",
"version": "0.13.5",
"version": "1.0.0",
"description": "CLI Tool to help manage content in Celonis EMS",
"main": "content-cli.js",
"bin": {
Expand Down