Skip to content

Update dependencies #505

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Oct 10, 2022
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
34 changes: 34 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release Lib

on:
push:
tags:
- '*'

jobs:
test:
runs-on: ubuntu-latest
env:
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}

steps:
- name: Disable EOL conversions
run: git config --global core.autocrlf false

- name: Checkout
uses: actions/checkout@master

- name: Integration tests
uses: actions/setup-node@v1
with:
node-version: '12'

- run: npm install
- run: npm run lint
- run: npm run test
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}

- run: npm run build
- run: npm publish
5 changes: 4 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: test
name: "[PR] Run Tests"

on:
pull_request:
types: [opened, synchronize, ready_for_review, reopened]
push:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
env:
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
steps:
- name: Disable EOL conversions
run: git config --global core.autocrlf false
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/verify-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: "[PR] Verify App Version"

on:
pull_request:
types: [opened, synchronize, ready_for_review, reopened]

jobs:
get-current-version:
name: Get Current Version
runs-on: ubuntu-latest
if: ${{ github.base_ref == 'master' }}
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
- uses: actions/checkout@v1

- id: get_version
name: Get version
run: |
version=$(node -p 'require("./package.json").version')
echo "::set-output name=version::${version}"

get-master-version:
name: Get Master Version
runs-on: ubuntu-latest
if: ${{ github.base_ref == 'master' }}
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
- uses: actions/checkout@v1
with:
ref: master

- id: get_version
name: Get version
run: |
version=$(node -p 'require("./package.json").version')
echo "::set-output name=version::${version}"

verify:
name: Verify versions
if: ${{ github.base_ref == 'master' }}
needs: [get-current-version, get-master-version]
runs-on: ubuntu-latest
steps:
- id: verify_versions
name: Verify versions
shell: bash
run: |
if [[ ${{ needs.get-current-version.outputs.version }} > ${{ needs.get-master-version.outputs.version }} ]] ; then
echo 'Version is ok!'
else
echo 'Must bump app version' && exit 1
fi


1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//registry.npmjs.org/:_authToken=${REPO_ACCESS_TOKEN}
Loading