Skip to content
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

ci: update workflows for next #322

Merged
merged 4 commits into from
Apr 29, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
32 changes: 0 additions & 32 deletions .github/workflows/bump.yaml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/if-nodejs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
push:
branches:
- master
- next

jobs:

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/if-nodejs-version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2
with:
ref: master
# target branch of release. More info https://docs.github.com/en/rest/reference/repos#releases
ref: ${{ github.event.release.target_commitish }}
- name: Check if Node.js project and has package.json
id: packagejson
run: test -e ./package.json && echo "::set-output name=exists::true" || echo "::set-output name=exists::false"
Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/release-wc-and-playground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: master
# target branch of release. More info https://docs.github.com/en/rest/reference/repos#releases
ref: ${{ github.event.release.target_commitish }}
- name: Setup Node.js
uses: actions/setup-node@v1
with:
Expand All @@ -29,15 +30,27 @@ jobs:
# When adding "bump:version" script in package.json, make sure no tags are added by default (--no-git-tag-version) as they are already added by release workflow
# When adding "bump:version" script in package.json, make sure --allow-same-version is set in case someone forgot and updated package.json manually and we want to avoide this action to fail and raise confusion
run: VERSION=${{github.event.release.tag_name}} npm run bump:webcomp:version
- name: Release web-component to NPM
- name: Release web-component to NPM (@latest tag)
if: github.event.release.target_commitish == 'master'
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./web-component/package.json
access: public
- name: Release web-component to NPM (@next tag)
if: github.event.release.target_commitish == 'next'
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./web-component/package.json
access: public
tag: next


playground:
name: Release Playground
# target branch of release. More info https://docs.github.com/en/rest/reference/repos#releases
if: github.event.release.target_commitish == 'master'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -61,6 +74,4 @@ jobs:
BRANCH: gh-pages
FOLDER: playground/build
GIT_CONFIG_NAME: asyncapi-bot
GIT_CONFIG_EMAIL: [email protected]


GIT_CONFIG_EMAIL: [email protected]
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
identification within third-party archives.

Copyright (c) 2018-2019 SAP SE or an SAP affiliate company. All rights reserved.
Copyright (c) 2020-2021 AsyncAPI Initiative. All rights reserved.
Copyright (c) 2020-2021 AsyncAPI contributors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Binary file removed library/asyncapi-react-component-0.20.1.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion library/package-lock.json

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

3 changes: 2 additions & 1 deletion library/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/react-component",
"version": "0.20.1",
"version": "0.23.0",
"private": false,
"description": "A React component for AsyncAPI specification.",
"repository": {
Expand Down Expand Up @@ -54,6 +54,7 @@
"test": "jest --detectOpenHandles",
"test:watch": "jest --detectOpenHandles --watch",
"prepare": "npm run build:dev",
"prepublishOnly": "npm run prepack",
"prepack": "npm run build:prod && cp ../README.md ./README.md && cp ../LICENSE ./LICENSE",
"postpack": "rm -rf ./README.md && rm -rf ./LICENSE",
"get:name": "echo $npm_package_name",
Expand Down
Loading