Skip to content

Commit

Permalink
chore: added release workflow + renamed the package + set new version;
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekk committed Oct 27, 2022
1 parent 4af7507 commit abc950f
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 12 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 18.x]
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn test
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn test
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Release

on: push

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install
- run: npm test
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
4 changes: 4 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ overrides:
options:
tabWidth: 2
useTabs: false
- files: '*.yml'
options:
tabWidth: 2
useTabs: false
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "browser-lang",
"version": "0.2.0",
"name": "@jacekk/browser-lang",
"version": "1.0.0",
"license": "MIT",
"description": "",
"repository": "github:jacekk/browser-lang",
Expand Down

0 comments on commit abc950f

Please sign in to comment.