Skip to content

Commit

Permalink
fix gh actions release script
Browse files Browse the repository at this point in the history
  • Loading branch information
marlokessler committed Apr 23, 2023
1 parent 7a0e5a1 commit 0e0f901
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/release.yml → .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
name: CI
name: Deploy

on:
push:
branches: [main, beta]
release:
types: [published]
workflow_dispatch:

permissions:
contents: write
packages: write

jobs:
release:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout project
Expand All @@ -22,8 +28,7 @@ jobs:
- name: Transpile Typescript
run: yarn build

- name: Release to NPM
- name: Publish to NPM
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "strapi-plugin-image-optimizer",
"version": "0.0.0-development",
"version": "1.0.0",
"description": "Optimize your images for desktop, tablet and mobile and different image formats.",
"homepage": "https://github.com/marlokessler/strapi-plugin-image-optimizer#readme",
"license": "MIT",
Expand Down Expand Up @@ -59,7 +59,6 @@
"devDependencies": {
"@strapi/typescript-utils": "^4.6.0",
"install-peers": "^1.0.4",
"semantic-release": "^21.0.1",
"typescript": "4.6.3"
},
"peerDependencies": {
Expand All @@ -71,7 +70,6 @@
"add:apple_arm": "npm_config_build_from_source=true yarn add",
"install:apple_arm": "npm_config_build_from_source=true yarn install",
"develop": "tsc -w",
"build": "tsc",
"semantic-release": "semantic-release"
"build": "tsc"
}
}

0 comments on commit 0e0f901

Please sign in to comment.