Skip to content

Commit

Permalink
Merge pull request #2 from joanas2azz/main
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasbnt authored Aug 4, 2023
2 parents db62523 + 39d5362 commit a4d6f39
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish

on:
release:
types: [published]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
registry-url: https://registry.npmjs.org/
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

publish-gpr:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
registry-url: https://npm.pkg.github.com
scope: "@mist3r-robot"
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@Mist3r-Robot/SuppressCache",
"name": "@mist3r-robot/suppresscache",
"version": "0.1.0",
"description": "Randomly generate a string to clear the cache of CloudFlare or other CDN.",
"main": "src/index.js",
Expand Down

0 comments on commit a4d6f39

Please sign in to comment.