File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -45,12 +45,29 @@ jobs:
45
45
env :
46
46
CI : true
47
47
48
- - name : Calculate tag
48
+ - name : Calculate environment variables
49
49
run : |
50
50
echo "tag_name=$(npm run calculate-tag-name --silent)" >> $GITHUB_ENV
51
+ echo "tailwindcss_version=$(node -e 'console.log(require(`./package.json`).version);')" >> $GITHUB_ENV
51
52
52
53
- name : Publish
53
54
run : npm publish --tag ${{ env.tag_name }}
54
55
env :
55
56
CI : true
56
57
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
58
+
59
+ - name : Trigger Tailwind Play update
60
+ if : env.tag_name == 'latest'
61
+ uses : actions/github-script@v6
62
+ with :
63
+ github-token : ${{ secrets.TAILWIND_PLAY_TOKEN }}
64
+ script : |
65
+ await github.rest.actions.createWorkflowDispatch({
66
+ owner: 'tailwindlabs',
67
+ repo: 'play.tailwindcss.com',
68
+ ref: 'master',
69
+ workflow_id: 'upgrade-tailwindcss.yml',
70
+ inputs: {
71
+ version: '${{ env.tailwindcss_version }}'
72
+ }
73
+ })
You can’t perform that action at this time.
0 commit comments