Skip to content

Commit

Permalink
Updated README and LICENSE and removed publish actions
Browse files Browse the repository at this point in the history
  • Loading branch information
robpc committed Jun 23, 2020
1 parent f1381d8 commit ba46c68
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 99 deletions.
8 changes: 0 additions & 8 deletions .github/actions/github-private-action/Dockerfile

This file was deleted.

20 changes: 0 additions & 20 deletions .github/actions/github-private-action/action.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/actions/github-private-action/entrypoint.sh

This file was deleted.

25 changes: 3 additions & 22 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Checkout Git-Version
uses: ./.github/actions/github-private-action
with:
package: '@wpmedia/[email protected]'
token: ${{ secrets.GITHUB_PACKAGE_TOKEN }}
- id: git_metadata
- id: metadata
name: Get Git Metadata
uses: ./.gh-private-actions/@wpmedia/git-version-action
- name: Package
env:
PACKAGE_VERSION: ${{steps.git_metadata.outputs.git_version}}
run: |
project_version=$(node -e "console.log(require('./package.json').version);")
if test "$project_version" != "$PACKAGE_VERSION"; then echo "ERROR: '$project_version' != '$PACKAGE_VERSION'" && exit 1; fi
npm install
npm run package
- name: Publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm config set '//npm.pkg.github.com/:_authToken' '${GITHUB_TOKEN}'
npm publish --registry https://npm.pkg.github.com
uses: .WPMedia/git-version-action
- name: Slack Notify
if: success()
uses: ./
with:
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: '{ "channel": "#post-unleashed-ops", "text": "Build `${{ github.repository }}@${{ steps.git_metadata.outputs.git_version }}` was successful" }'
payload: '{ "channel": "#publishing-tools-ops", "text": "Build `${{ github.repository }}@${{ steps.git_metadata.outputs.git_version }}` was successful" }'

2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
- uses: ./
with:
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: '{ "channel": "#post-unleashed-ops", "text": "Slack message test for `${{ github.repository }}@${{ github.sha }}` " }'
payload: '{ "channel": "#publishing-tools-ops", "text": "Slack message test for `${{ github.repository }}@${{ github.sha }}` " }'
22 changes: 21 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
Copyright © 2020 The Washington Post. All rights reserved.
MIT License

Copyright (c) 2020 The Washington Post

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"url": "git+https://github.com/WPMedia/slack-action.git"
},
"author": "",
"license": "SEE LICENSE IN LICENSE",
"license": "MIT",
"bugs": {
"url": "https://github.com/WPMedia/slack-action/issues"
},
Expand Down

0 comments on commit ba46c68

Please sign in to comment.