This repository has been archived by the owner on May 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from data-provider/release
Release v1.4.0
- Loading branch information
Showing
31 changed files
with
2,088 additions
and
532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: check-package-version | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
check-package-version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Get NPM version is new | ||
id: check | ||
uses: EndBug/[email protected] | ||
with: | ||
diff-search: true | ||
file-name: ./package.json | ||
file-url: https://unpkg.com/@data-provider/react@latest/package.json | ||
static-checking: localIsNew | ||
- name: Check version is new | ||
if: steps.check.outputs.changed != 'true' | ||
run: | | ||
echo "Version not changed" | ||
exit 1 | ||
- name: Get NPM version | ||
id: package-version | ||
uses: martinbeentjes/[email protected] | ||
- name: Check Changelog version | ||
id: changelog_reader | ||
uses: mindsers/[email protected] | ||
with: | ||
version: ${{ steps.package-version.outputs.current-version }} | ||
path: ./CHANGELOG.md | ||
- name: Read version from Sonar config | ||
id: sonar-version | ||
uses: christian-draeger/[email protected] | ||
with: | ||
path: './sonar-project.properties' | ||
property: 'sonar.projectVersion' | ||
- name: Check Sonar version | ||
if: steps.sonar-version.outputs.value != steps.package-version.outputs.current-version | ||
run: | | ||
echo "Version not changed" | ||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: publish-to-github-registry | ||
on: | ||
release: | ||
types: [created] | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: npm ci | ||
- run: npm run build | ||
# Setup .npmrc file to publish to GitHub Packages | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
registry-url: 'https://npm.pkg.github.com' | ||
# Defaults to the user or organization that owns the workflow file | ||
scope: '@data-provider' | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.