Skip to content

Commit

Permalink
Merge pull request #45 from adidas/feature/replace-travis-by-actions
Browse files Browse the repository at this point in the history
REPLACE TravisCI by GitHub Actions
  • Loading branch information
RecuencoJones authored Feb 3, 2021
2 parents 55d82a2 + a1356b2 commit 970d520
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 38 deletions.
8 changes: 8 additions & 0 deletions .ci/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

set -eu

echo "Publishing release $TAG"

echo //registry.npmjs.org/:_authToken=$NPM_TOKEN > ~/.npmrc
npm run lerna:publish
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- run: |
npm install
npm run setup
npm run lint
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- env:
TAG: ${{ github.events.release.tag_name }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm install
bash .ci/publish.sh
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .travis/publish.sh

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ This changelog is only to log changes of the project base.
If there are changes on the packages, please, check and update the changelog of each package accordingly.
-->

## 1.9.5

- Replaced TravisCI by GitHub Actions

## 1.9.4

- Fixed configuration for `eslint-config-adidas-babel`.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![](./logo.png)

![[](https://travis-ci.com/adidas/js-linter-configs)](https://api.travis-ci.com/adidas/js-linter-configs.svg?branch=master)
![Build](https://github.com/adidas/js-linter-configs/workflows/Build/badge.svg)

# adidas linter configurations

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-linter-configs",
"version": "1.9.4",
"version": "1.9.5",
"description": "adidas configurations for JavaScript linting tools",
"license": "MIT",
"contributors": [
Expand Down

0 comments on commit 970d520

Please sign in to comment.