@@ -45,6 +45,14 @@ Example: `http://localhost:9876/base/test/web-platform-tests/web-animations/anim
45
45
46
46
## Publishing a release
47
47
48
+ 1 . Clone a fresh copy of [ web-animations-js] ( https://github.com/web-animations/web-animations-js ) .
49
+
50
+ 1 . Make sure you are on the ` dev ` branch.
51
+
52
+ ``` sh
53
+ git checkout dev
54
+ ```
55
+
48
56
1. Determine the version number for the release
49
57
50
58
* Increment the first number and reset others to 0 when there are large breaking changes
@@ -70,8 +78,14 @@ Example: `http://localhost:9876/base/test/web-platform-tests/web-animations/anim
70
78
71
79
1. Build the polyfill with ` npm install && grunt` then update ` docs/experimental.md` ' s Build Target Comparison with the current gzipped sizes.
72
80
73
- 1. Commit the above changes to web-animations-js/dev and merge to
74
- web-animations-js/master.
81
+ 1. Commit and push the above changes to web-animations-js/dev.
82
+
83
+ ```sh
84
+ # Create a commit with above changes
85
+ git push origin dev
86
+ ```
87
+
88
+ 1. Merge to local master branch:
75
89
76
90
```sh
77
91
git checkout master
@@ -85,14 +99,17 @@ Example: `http://localhost:9876/base/test/web-platform-tests/web-animations/anim
85
99
grunt
86
100
# Optional "grunt test" to make sure everything still passes.
87
101
git add -f *.min.js{,.map}
88
- git rm .gitignore
102
+ git rm --ignore-unmatch .gitignore
89
103
git commit -m ' Add build artifacts from ' `cat .git/refs/heads/dev`
90
- git push HEAD:refs/heads/ master
104
+ git push origin master
91
105
```
92
106
93
- 1. Draft a [new release](https://github.com/web-animations/web-animations-js/releases) at the
94
- commit pushed to web-animations-js in step #4. Copy the release notes from `History.md`
95
- added in step #2.
107
+ 1. Draft a [new release](https://github.com/web-animations/web-animations-js/releases).
108
+
109
+ * For the **tag version**, put the new version number of this release.
110
+ * For the **target**, select "master".
111
+ * For the **title**, look at previous releases for examples.
112
+ * For the **description**, copy the release notes from `History.md` added in step #2.
96
113
97
114
1. Once you' ve pushed to web-animations-js, run ` npm publish` from that checked-out folder
98
115
0 commit comments