Skip to content

Commit

Permalink
ci: publish package with github action
Browse files Browse the repository at this point in the history
  • Loading branch information
michael.weydert committed Jun 27, 2023
1 parent 0920b9b commit cf5a0ec
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Publish"
on:
release:
types: [published]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
publish:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.metadata.outputs.version }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
registry-url: "https://registry.yarnpkg.com"
- run: yarn install --frozen-lockfile
- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@davincilord/strapi-plugin-sms",
"version": "1.0.2",
"name": "@thetribe/strapi-plugin-sms",
"version": "1.0.0",
"description": "Send SMS inside of your Strapi app.",
"strapi": {
"name": "sms",
Expand All @@ -10,10 +10,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/davincilord/strapi-plugin-sms.git"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/davincilord"
"url": "https://github.com/thetribeio/strapi-plugin-sms.git"
},
"scripts": {
"publish:latest": "cd build && npm publish --access public --tag latest",
Expand Down Expand Up @@ -71,4 +68,4 @@
},
"license": "MIT",
"packageManager": "[email protected]"
}
}

0 comments on commit cf5a0ec

Please sign in to comment.