Skip to content

Commit 7639b5e

Browse files
authored
Merge pull request #19 from Kentico/migrate-travis-GHActions
Migrate from Travis to GHActions
2 parents 8a20cd1 + a96f708 commit 7639b5e

File tree

4 files changed

+44
-20
lines changed

4 files changed

+44
-20
lines changed

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
release:
3+
types: [published]
4+
5+
name: publish-to-npm
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version: [14.x]
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
registry-url: 'https://registry.npmjs.org'
21+
- run: npm install
22+
- run: npm run build
23+
- run: npm publish
24+
env:
25+
NODE_AUTH_TOKEN: ${{ secrets.NPM_API_KEY }}

.github/workflows/test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Test
2+
on: [pull_request]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
node-version: [14.x]
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Use Node.js ${{ matrix.node-version }}
12+
uses: actions/setup-node@v1
13+
with:
14+
node-version: ${{ matrix.node-version }}
15+
- run: npm i
16+
- run: npm run test

.travis.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Kentico Kontent CLI
22

3-
The Kontent CLI helps you when you need to change content models within your [Kentico Kontent](https://kontent.ai/) projects and migrate existing content to match the changes. The CLI provides you with guidance on how to write and run migration scripts.
43
[![npm](https://img.shields.io/npm/v/@kentico/kontent-cli.svg)](https://www.npmjs.com/package/@kentico/kontent-cli)
5-
[![Build Status](https://travis-ci.com/Kentico/kontent-cli.svg?branch=master)](https://travis-ci.com/Kentico/kontent-cli)
4+
[![Build](https://github.com/Kentico/kontent-cli/actions/workflows/test.yml/badge.svg)](https://github.com/Kentico/kontent-cli/actions/workflows/test.yml)
5+
6+
The Kontent CLI helps you when you need to change content models within your [Kentico Kontent](https://kontent.ai/) projects and migrate existing content to match the changes. The CLI provides you with guidance on how to write and run migration scripts.
67

78
**_NOTE:_** The Kontent CLI tool supports only Javascript files, so if you write your migrations in Typescript or any other language you have to transpile your code before running.
89

0 commit comments

Comments
 (0)