Skip to content

Commit 37cac10

Browse files
committed
chore(ci): replace TravisCI with GitHub Actions
1 parent 6a35ec5 commit 37cac10

File tree

4 files changed

+44
-15
lines changed

4 files changed

+44
-15
lines changed

.github/workflows/ci.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: CI (webpack 5)
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
- "feature/**"
11+
pull_request:
12+
branches: [ "*" ]
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
strategy:
19+
matrix:
20+
node-version:
21+
- 14.x
22+
- 16.x
23+
- 18.x
24+
- 20.x
25+
26+
steps:
27+
- uses: actions/checkout@v3
28+
- name: Using Node.js ${{ matrix.node-version }}
29+
uses: actions/setup-node@v3
30+
with:
31+
node-version: ${{ matrix.node-version }}
32+
cache: yarn
33+
- name: Installing dependencies
34+
run: yarn --frozen-lockfile
35+
- name: Running unit-tests
36+
run: yarn test

.travis.yml

-7
This file was deleted.

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ Storing configuration in _environment variables_ separate from code and grouping
88

99
> backed by [dotenv-flow](https://github.com/kerimdzhanov/dotenv-flow), inspired by [dotenv-webpack](https://github.com/mrsteele/dotenv-webpack)
1010
11+
[![Build Status](https://github.com/kerimdzhanov/dotenv-flow-webpack/actions/workflows/ci.yml/badge.svg?branch=master&event=push)](https://github.com/kerimdzhanov/dotenv-flow-webpack/actions/workflows/ci.yml)
1112
[![npm version](https://badge.fury.io/js/dotenv-flow-webpack.svg)](https://badge.fury.io/js/dotenv-flow-webpack)
12-
[![Build Status](https://travis-ci.com/kerimdzhanov/dotenv-flow-webpack.svg?branch=master)](https://travis-ci.com/kerimdzhanov/dotenv-flow-webpack)
13-
[![dependencies status](https://david-dm.org/kerimdzhanov/dotenv-flow-webpack/status.svg)](https://david-dm.org/kerimdzhanov/dotenv-flow-webpack)
14-
13+
[![Known Vulnerabilities](https://snyk.io/test/github/kerimdzhanov/dotenv-flow-webpack/badge.svg?targetFile=package.json)](https://snyk.io/test/github/kerimdzhanov/dotenv-flow-webpack?targetFile=package.json)
1514

1615
## Installation
1716

RELEASE.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
## Shipping a new version
44

5-
1. Ensure you've pushed all the necessary changes to the repo and tests are successfully passed on TravisCI
5+
1. Make sure all the latest changes are pushed to the repo and all the related
6+
workflow tests are passing on CI (https://github.com/kerimdzhanov/dotenv-flow-webpack/actions)
67
2. Bump up the version in `package.json`
78
3. Update the `CHANGELOG.md` file using `$ yarn changelog`
89
4. Make a release commit with a message in format `chore(release): vX.Y.Z`
910
5. Tag the release commit using `$ git tag vX.Y.X`
10-
6. Push the release commit (including the tag) to github `$ git push && git push --tags`
11-
7. Temporary decrease the logo size in `README.md` up to 210x230
12-
8. Publish the new package version using `$ npm publish`
13-
9. Reset the logo size to the original
11+
6. Push the release commit and tag to github `$ git push && git push --tags`
12+
7. Temporary decrease the logo size in `README.md` up to 210x230 (to make it look perfect on npmjs.org)
13+
8. Publish the new package version using `$ yarn publish`
14+
9. Reset the logo size back to original

0 commit comments

Comments
 (0)